Skip to main content

TcxCustomGridTableController.DeleteSelection Method

Deletes selected records within the current View.

Declaration

procedure DeleteSelection; virtual;

Remarks

If the View’s OptionsSelection.MultiSelect property is set to True, a grid View allows you to select multiple records. These records can be accessed via the SelectedRecords collection (when GridMode is not used) and the View’s DataController.GetSelectedBookmark function (in grid mode applied to a data-aware View).

Use the DeleteSelection method to delete selected records. You can refer to the Focused/Selected Records and Selecting Records sections for more information.

See Also