RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.SelectCell Method

Determines whether a particular cell in the grid can be selected.

Pascal
function SelectCell(ACol: Longint; ARow: Longint): Boolean; virtual;
C++
virtual __fastcall Boolean SelectCell(Longint ACol, Longint ARow);

Grid controls call SelectCell internally before attempting to move selection to a the cell identified by the ACol and ARow parameters. ACol and ARow are the column and row indexes for the cell, where the first column has index 0, and the top row has index 0. 

The SelectCell method for TCustomGrid always returns true, allowing the cell to be selected. Descendants of TCustomGrid override this method to check the properties of the information displayed in the cell or generating an OnSelectCell event. 

 

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