Currently I am using the XamDataGrid class and setting up a field layout; the field headers show up as expected but only when there are items that match the specified field layout. For my business case I would like the grid to always show the field headers even if there are no items to be displayed. Is there any current way of doing this?
Hi,
is there a solution for nested grids also? I have nested grids that only display headers if the collection has items and I need them to display even while empty.
The collection itself is not null and is only accessed when I click expand button on the parent row.
Waiting for a response.
Is there any way to do this without initialization of the data? I cannot do this because i use one property of type ObservableCollection<XYZ> tor which i add (decided on what TabPage i currently am) objects that implements IXYZ interface with some additional fields.
Nice, I knew it was something simple I was missing. Thanks for the response!!
HI Outro56,
Make sure that the collection your grid is bound too has been instantiated.
ObservableCollection<Person> people = new ObservableCollection<person>();
I am attaching a sample that illustrates this point.
Sincerely,
Mat
Developer Support Engineer