I have a Grid bound to a BindingList<IMyInterface> which worked fine, until I disabled Auto Generation of Fields in my grid.
I understand I need to define a Field Layout which I was already doing. I can't see how it is wrong at all, so there shouldn't be any reason for it to fail. To ensure my field layout is correctly defined, I used the technique defined mentioned in other posts to print out the field layout and then set it manually.
When my window initially load, the data I'm binding to is empty. The grid is rendered as a thin white line on the screen (no column headers). Once my binding list gets populated, the line remains, and a thin bar is placed on it, with an arrow on the left hand side - that's all - no column headers, no grid data etc.
Any ideas what might be happening?
thanks
I mean the structure of the underlying class - public properties.
Of which class sorry?
my grid looks like
<igDP:XamDataGrid DataSource="{Binding Path=MyObjects}" x:Name="mygrid" Style="{DynamicResource DefaultInfragisticsGridStyle}" > <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="False" /> </igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="a" /> <igDP:Field Name="b" /> <igDP:Field Name="c" /> <igDP:Field Name="d" /> <igDP:Field Name="e" /> <igDP:Field Name="f" /> <igDP:Field Name="g" /> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid>
Hello,
If the AutoGenerateFields is true and it is working and when it is off it is not, is sounds like a problem with the FieldLayouts. Can you give us a sample of what your class looks like?