Vcl.DBGrids.TCustomDBGrid.SelectedRows
Delphi
property SelectedRows: TBookmarkList read FBookmarks;
C++
__property TBookmarkList* SelectedRows = {read=FBookmarks};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Specifies a set of bookmarks for all the records in the dataset that correspond to rows selected in the grid.
Use the properties and methods of the TBookmarkList object returned by SelectedRows to:
- Determine the number of rows in the grid that are selected.
- Determine whether the current record in the dataset is selected.
- Determine whether a particular record in the dataset is selected.
- Delete all selected rows from the dataset.
SelectedRows is only meaningful when the Options property includes dgRowSelect and dgMultiSelect.