Vcl.DBGrids.TCustomDBGrid.OnColEnter
Delphi
property OnColEnter: TNotifyEvent read FOnColEnter write FOnColEnter;
C++
__property System::Classes::TNotifyEvent OnColEnter = {read=FOnColEnter, write=FOnColEnter};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
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.