API:Vcl.ValEdit.TValueListEditor.SelectCell

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SelectCell(ACol, ARow: Longint): Boolean; override;

C++

virtual bool __fastcall SelectCell(int ACol, int ARow);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit TValueListEditor

Description

Determines whether a particular cell in the grid can be selected.

Vcl.ValEdit.TValueListEditor.SelectCell inherits from Vcl.Grids.TCustomDrawGrid.SelectCell. All content below this line refers to Vcl.Grids.TCustomDrawGrid.SelectCell.

Determines whether a particular cell in the grid can be selected.

Grid controls call SelectCell internally before attempting to move selection to a the cell identified by the ACol and ARow parameters. ACol and ARow are the column and row indexes for the cell, where the first column has index 0, and the top row has index 0.

SelectCell generates an OnSelectCell event. This method then returns true, unless the OnSelectCell event handler indicates that the cell should not be selected. Descendants of TCustomDrawGrid can override this method to check the properties of the information displayed in the cell or block the OnSelectCell event.

See Also