API:Vcl.DBGrids.TDBGrid.OnColEnter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnColEnter: TNotifyEvent read FOnColEnter write FOnColEnter;

C++

__property OnColEnter;

Properties

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

Description

Occurs when focus moves to a new cell in the grid.

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

Occurs when focus moves to a new cell in the grid.

Write an OnColEnter event handler to take specific action when a new cell has just been selected. Focus moves to a cell when

The user navigates to the cell using the keyboard. For example, when the user uses the Tab key, or the Home key.

The user clicks the mouse button down in the cell.

The SelectedField or SelectedIndex property is set.

Read the SelectedField or SelectedIndex property to determine which cell was just entered.

See Also