I have defined the columns of my XamDataGrid using FieldSettings and FieldLayout. But the problem is, that the grid takes all the properties from the "inserted" objects and displays them as columns. This means, that I have to create a specific ViewModel-class for the DataGrid, which is a bit annoying.
The standard WPF DataGrid has an attribute called AutoGenerateColumns. Does the XamDataGrid have something like this? I can't find it...
Hello Christian,
In your case the records you show as children are not directly children, and they are from the child collection and this is why they don’t have indentation. If you want you can create a style for set the DataRecordPresenter and set its Margin Property. I modified your sample from the previous post and attached it.
Hello Stefan
Apparently the indentation of nested items is removed when setting AutoGenerateFields to false.
How can I keep the indentation but still define my own fields?
No need for that!
I discovered what my problem was. I had removed a piece of XAML that for obvious reasons shouldn't be removed...
Sorry for the inconvenience...
Hello,
Could you please send me an isolated sample project, where you put the solutions together, so I can investigate this further for you.
Looking forward for your reply.
Some time ago you helped me with removing headers and indentation from child-elements in the XamDataGrid.
http://community.infragistics.com/forums/p/56968/297637.aspx#297637
After I added the code from the previous posts (AutoGenerateFields, collections), the "styling" for headers and indentation doesn't work!
Could you take a look at this issue?