Object Reference > True DBGrid Events > DblClick Event |
DblClick Event
The DblClick event occurs when the user presses then releases a mouse button twice in rapid succession over the grid.
object_DblClick ( )
Arguments
None
Double clicking a grid also generates MouseDown, MouseUp, and Click events in addition to the DblClick event. The order of events for the TDBGrid control is MouseDown, MouseUp, Click, DblClick, and MouseUp.
Note
When the MarqueeStyle property of a TDBGrid control is set to the default value of 6 - Floating Editor, the DblClick event will not fire when the user double-clicks a noncurrent cell within the grid. This is because the first click is used by the floating editor to begin editing, placing the cell into edit mode at the character on which the click occurred. Double-clicking the current cell of the grid fires the DblClick event normally, however.