Version

Adding Records

By default, the DataPresenter does not provide a UI for adding records. To turn on the UI for adding records set the FieldLayoutSettings' AllowAddNew property to True. You can also specify the location of the new record by using the AddNewRecordLocation property, as shown in the example code below:

<igDP:XamDataGrid>
        <igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:FieldLayoutSettings
                  AllowAddNew="True"
                  AddNewRecordLocation="OnTopFixed"/>
        </igDP:XamDataGrid.FieldLayoutSettings>
</igDP:XamDataGrid>
Note
Note

Adding records is supported only if the data source implements the IBindingList interface and returns True from its AllowNew property. Adding records is not supported in all views (e.g., Carousel view).