the datagrde is binding to data collection with default construction.
but the new row is not showing. I understand in other datagrid there is a feature allowaddnew, is there anything like that in xamldatagrid? anyway, please help me on this
Here's an important note from the documentation about new rows.
Note: Adding records is supported only if the data source implements the IBindingList interface and returns True from its AllowNew property.
This means your view model that has the observable collection will need to implement the IBindingList interface to add functionality for allowing new rows to be added.
will a new row be auto generated when it is an empty observablecollection set?
Tried, not working. I use observablecollection.
You can allow the adding of new rows and configure it's placement with the XAML below.
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AddNewRecordLocation="OnTopFixed" AllowAddNew="True"/>
</igDP:XamDataGrid.FieldLayoutSettings>