<igDP:XamDataGrid> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AllowDelete="False"/> </igDP:XamDataGrid.FieldLayoutSettings> </igDP:XamDataGrid>
By default, record deletion through the UI is enabled. To disable record deletion through the UI, set the FieldLayoutSettings' AllowDelete property to False, as shown in the following example:
<igDP:XamDataGrid> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AllowDelete="False"/> </igDP:XamDataGrid.FieldLayoutSettings> </igDP:XamDataGrid>
Support for record deletion in the UI applies to the currently selected records (see SelectedItems). Normally, the end user selects the records and then presses the DELETE key. By default, a confirmation message box is displayed before the records are deleted. However, this behavior can be modified by handling the RecordsDeleting event.