Vcl.DBGrids.TBookmarkList.CurrentRowSelected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CurrentRowSelected: Boolean read GetCurrentRowSelected  write SetCurrentRowSelected;

C++

__property bool CurrentRowSelected = {read=GetCurrentRowSelected, write=SetCurrentRowSelected, nodefault};

Properties

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

Description

Indicates whether the Bookmark property of the associated DBGrid's dataset is in the Items array.

Read CurrentRowSelected to determine whether the Bookmark property of the associated DBGrid's dataset specifies a bookmark string in the Items property array. CurrentRowSelected is true when the bookmark string is included, false when it is not. The Bookmark property of the dataset indicates the current record in the dataset.

Set CurrentRowSelected to specify whether the Bookmark string of the associated DBGrid's dataset should be included in the bookmark list. Setting CurrentRowSelected to true adds the Bookmark property of the dataset to the Items array if it is not already there. Setting CurrentRowSelected to false removes the Bookmark of the dataset from the Items array if it is there. If the Bookmark property of the dataset is an empty string (no bookmark), setting CurrentRowSelected does nothing.

Note: Trying to read or write CurrentRowSelected when the dataset is not active will raise an EInvalidGridOperation exception.

See Also