Vcl.Grids.TCustomDrawGrid.SelectCell
Delphi
function SelectCell(ACol, ARow: Longint): Boolean; override;
C++
virtual bool __fastcall SelectCell(int ACol, int ARow);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomDrawGrid |
Description
Determines whether a particular cell in the grid can be selected.
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.
SelectCell generates an OnSelectCell event. This method then returns true, unless the OnSelectCell event handler indicates that the cell should not be selected. Descendants of TCustomDrawGrid can override this method to check the properties of the information displayed in the cell or block the OnSelectCell event.