RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBookmarkList.CurrentRowSelected Property

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

Pascal
property CurrentRowSelected: Boolean;
C++
__property Boolean CurrentRowSelected;

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!