Object Reference > True DBGrid Events > Click Event |
Click Event
The Click event occurs when the user presses then releases a mouse button over the grid.
object_Click ( )
Arguments
None
Clicking a grid also generates MouseDown and MouseUp events in addition to the Click event. The order of events for both the TDBGrid and TDBDropDown controls is MouseDown, MouseUp, and Click.
When the user clicks a noncurrent row, the Click event fires before the grid attempts to reposition to the row that was clicked. If the attempt succeeds, the grid then fires the RowColChange (or RowChange) event. For this reason, you should not use the Click event to perform operations that depend upon the current row.
Note
You can use the PostMsg method and PostEvent event to defer processing until the row change has completed.