I have a ado.net dataset which I am binding to the xamDataGrid.
My XamDataGrid.FieldLayoutSettings has AutoGenerateFields="False".
I am able to manually define my hierarchical child field layouts correctly for relations that I care about.
But I am also seeing some other odd fieldlayouts being created that I don't want/need. I can see them during fieldlayoutinitialized events. They stem from a method FieldLayoutCollection.InitializeChildFieldLayouts which seems to be iterating over table relationships. Where regular relationships are concerned I don't get unwanted fieldlayouts.
However, the TypedListPropertyDescriptorProvider seems to be picking up on byte[] columns and creating child field layouts for them. I'd rather this not happen since the screen is already getting slow. Why are they being created when I specified AutoGenerateFields="False"? I'm looking into work-arounds and would be open to suggestions.
Hi,
Thank you for your post. I have been looking into your issue and on my side when defining the field layouts of the XamDataGrid manually(AutoGenerateFields="False"), no additional fields are shown on ‘FieldLayoutInitialized’ event of the XamDataGrid. Only these fields defined by me are available. I am attaching a sample application(DataGridHierarchyFields.zip). Please see the results in the Output window when the field layouts are initialized.
Let me know if this issue occurs with my sample application on your machine.
Thank you for the prompt reply. I really appreciate this effort.
One minor change should be to use ADO.Net and add the byte[]. See attached.