Contents
- Index
- Previous
- Next
OnSelectCell event
Applies to
TProfGrid component
Declaration
property OnSelectCell: TSelectCellEvent;
Description
Occurs before a cell in the grid is selected.
Write an OnSelectCell event handler to specify whether any particular cell in the grid can be selected. The ACol and ARow parameters indicate the visible column and row indexes of the cell that is about to be selected. Set the CanSelect parameter to False to prevent the cell from being selected.
Tip: It is not recommended to use the OnSelectCell event for any purpose except setting the CanSelect parameter, since the event occurs before the cell is actually selected. If you need to execute some code each time when the current cell has changed, use the OnClick event.