Back to Devexpress

TcxCustomGridTableController.SelectedRecordCount Property

vcl-cxgridcustomtableview-dot-tcxcustomgridtablecontroller-2944d241.md

latest2.2 KB
Original Source

TcxCustomGridTableController.SelectedRecordCount Property

Returns the number of selected records within the View.

Declaration

delphi
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

TcxCustomGridTableController.ClearSelection

TcxCustomGridTableController.DeleteSelection

TcxCustomGridTableController.SelectedRecords

Focused/Selected Records

Selecting Records

TcxCustomGridTableController Class

TcxCustomGridTableController Members

cxGridCustomTableView Unit