[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# TCustomGrid.DblClick

Performs actions needed to handle mouse double click events in the control.

## Declaration

Source position: grids.pas line 1018

`protected procedure TCustomGrid.DblClick; override;`

## Description

DblClick is an overridden method used to perform actions needed when a mouse Double Click event occurs in the grid control.

SelectActive is set to False to ignore an active cell or range selection in the control. The internal TGridState member for the control is set to gsNormal to reflect the new state for the control.

DblClick uses values in the Options property to determine whether double click is enabled for column or row sizing operations in the control. Some of the Options values relevant to DblClick include:

goColSizing
  Column sizing in enabled for the control.
goRowSizing
  Row sizing is enabled for the control.
goDblClickAutoSize
  A mouse double click resizes the column automatically.

When the needed Options values are present, and match the current CursorState for the control, the corresponding action is performed. AutoAdjustColumn is called for a column resize action. RestoreCursor is called, and HeaderSized is called to signal completion of the column resize operation. Row resize actions for double click mouse events are not currently implemented.

If the values in Options or CursorState do not meet the required conditions, the inherited method is called.

## See also

TControl.DblClick |  | Signals the OnDblClick event handler (when assigned).