[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Makes the specified column and row a selected cell in the grid control.
Source position: grids.pas line 1188
protected procedure TCustomGrid.SetColRow( |
const ACol: Integer; |
const ARow: Integer; |
withEvents: Boolean = False |
); |
ACol |
|
Column number for the selected cell. |
ARow |
|
Row number for the selected cell. |
withEvents |
|
True if the OnClick event handler is signalled for the change to the selected range. |
ACol and ARow contain the coordinates for the cell affected in the method.
WithEvents indicates whether the specified cell is added to the Selections for the grid control, or if it becomes the selected cell.
When WithEvents is set to True, MoveExtend is called to add the cell to the current range. This also causes the Click method to be called to signal the OnClick event handler (when assigned).
When WithEvents is set to False, argument values are assigned to the Col and Row properties in the grid control. UpdateSelectionRange is called to update the cell rectangle for the cell or row selection.
|
Column index for the selected grid cell. |
|
|
Row number for the selected grid cell. |
|
|
Updates the selection range when the current selection in the grid has changed. |
|
|
Moves the selected cell or extends a selection using the specified column and row values. |
|
|
Performs actions needed when a mouse click occurs in the grid control. |
Version 4.0 | Generated 2025-05-03 | Home |