Hello,
I have the following problem:
I have a XamDataGrid bound to an hierarchical data source, which was implemented using two FieldLayouts in order to show the List class included in the data source, as another level.
Now I want, in some condition, to limit the number of new rows allowed to be add to the data source in the second FieldLayout.
How I can do it?
Thanks in advance.
Thanks a lot.
In this case, you have to set the AllowAddNew property to false for the second layout only, if you do not want to be able to add records there:
XamDataGrid.FieldLayouts[1].Settings.AllowAddNew = false;