Skip to main content

TcxCustomGridTableController.SelectedRecordCount Property

Returns the number of selected records within the View.

Declaration

property SelectedRecordCount: Integer read;

Property Value

Type
Integer

Remarks

A grid control allows you to select multiple records within a View if its OptionsSelection.MultiSelect property is set to True.

You can use the SelectedRecordCount property to get the number of selected records.

Access to selected records is implemented differently in grid mode and default mode.

When grid mode is applied to a data-aware View, you can get selected records via the View’s DataController.GetSelectedBookmark function. This returns a TBookmarkStr object which can be used in the dataset’s GotoBookmark method, for instance.

If grid mode is disabled (by default), use the SelectedRecords collection to get selected record objects.

See Also