[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Determines whether the specified cell can be selected in the grid control.
Source position: grids.pas line 1184
protected function TCustomGrid.SelectCell( |
ACol: Integer; |
ARow: Integer |
):Boolean; virtual; |
ACol |
|
Column number for the cell. |
ARow |
|
Row number for the cell. |
True when the cell can be selected in the grid control.
SelectCell is a Boolean function used to determine whether the cell specified in ACol and ARow can be selected in the grid control. The return value is True when both ColWidths and RowHeights have positive non-zero values for the column and row numbers where the cell is located.
SelectCell is used in the implementation of methods like TryMoveSelection, CheckPosition, SelectEditor, and GetDeltaMoveNext. It is overridden in TCustomDrawGrid to signal the OnSelectCell event handler (when assigned).
Component developers may use the SelectCell method to react to focus changes. The Result is True if the cell can be selected.
Version 4.0 | Generated 2025-05-03 | Home |