Vcl.DBGrids.TDBGrid.OnCellClick

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCellClick: TDBGridClickEvent read FOnCellClick write FOnCellClick;

C++

__property OnCellClick;

Properties

Type Visibility Source Unit Parent
event published
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TDBGrid

Description

Occurs when the user releases the mouse in one of the cells of the grid.

Vcl.DBGrids.TDBGrid.OnCellClick inherits from Vcl.DBGrids.TCustomDBGrid.OnCellClick. All content below this line refers to Vcl.DBGrids.TCustomDBGrid.OnCellClick.

Occurs when the user releases the mouse in one of the cells of the grid.

Write an OnCellClick event handler to take specific action when the user clicks in one of the cells of the data-aware grid.

OnCellClick occurs when the user releases the mouse. To take action when the user clicks down on the mouse, use the OnColEnter event.

OnCellClick will not occur when the mouse is released at the end of resizing a row or column, or when the cell is being edited.

See Also