I am trying to load a xamdatagrid with hierarchical data that has summaries in FieldLayout(0) and FieldLayout(1). However, FieldLayout(1) is not accessible in code. I am trying to apply a summary to a field in the nested data and then change the field settings, but I get an error saying "Index was out of range."
How can I access the nested data in code?
Thanks Alex. The xamdatagrid does this automatically in the FieldLayoutInitialized routine. It performs this twice, the first time for FieldLayout(0) and then a second time for FieldLayout(1). I had to setup a Case statement for e.FieldLayout.Key. It would be nice to use the Index for the field but it was not accessible.
Thanks again.
Chris
Hello,
The nested field layout is generated when at least one record is expanded from its parent layout. You would have to first expand a record if you want to be able to access its FieldLayout's properties.