Vcl.DBGrids.TDBGrid.SelectedRows

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SelectedRows: TBookmarkList read FBookmarks;

C++

__property SelectedRows;

Properties

Type Visibility Source Unit Parent
property public
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TDBGrid

Description

Specifies a set of bookmarks for all the records in the dataset that correspond to rows selected in the grid.

Vcl.DBGrids.TDBGrid.SelectedRows inherits from Vcl.DBGrids.TCustomDBGrid.SelectedRows. All content below this line refers to Vcl.DBGrids.TCustomDBGrid.SelectedRows.

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.

See Also