In C#, is there a way to determine which FieldLayout is being used without having to loop through all the FieldLayouts[] and comparing with the DefaultFieldLayout?
Hello Jason,
The DefaultFieldLayout is set by default to the FieldLayout that is associated with the first DataRecord encountered.
There is no particular process that is running for a single FieldLayout at a time. Would you please provide me with more detailed information on what you are referring to by saying "which FieldLayout is being used"?
Having this information will help me further investigate this matter for you.
So I have a DataGrid bound to a DataTable and initially there is only one FieldLayout entry in the FieldLayouts array. Through different events(a button click for example) I create a new Datatable but now with an extra column. After binding, I noticed a new FieldLayout entry which contains an extra Field is added to accommodate for the new column. I would like to set that column to read only and I am doing that by setting the AllowEdit flag to false. The problem is determining which Field or FieldLayout to adjust.
Thanks for your help