API:Vcl.Grids.TDrawGrid.OnSelectCell

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

property OnSelectCell: TSelectCellEvent read FOnSelectCell write FOnSelectCell;

C++

__property OnSelectCell;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
event published
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TDrawGrid

Beschreibung

Tritt ein, bevor eine Gitterzelle ausgewählt wird.

Vcl.Grids.TDrawGrid.OnSelectCell erbt von Vcl.Grids.TCustomDrawGrid.OnSelectCell. Der folgende Inhalt bezieht sich auf Vcl.Grids.TCustomDrawGrid.OnSelectCell.

Tritt ein, bevor eine Gitterzelle ausgewählt wird.

In einer Ereignisbehandlungsroutine für OnSelectCell können Sie verhindern, dass eine bestimmte Gitterzelle ausgewählt wird. Die Parameter Col und Row bezeichnen die Position der betreffenden Zelle. Setzen Sie den Parameter CanSelect auf False, um zu verhindern, dass die Zelle ausgewählt wird.

Siehe auch

Codebeispiele