Vcl.DBGrids.TCustomDBGrid.HighlightCell

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  HighlightCell(DataCol, DataRow: Integer; const Value: string;  AState: TGridDrawState): Boolean; virtual;

C++

virtual bool __fastcall HighlightCell(int DataCol, int DataRow, const System::UnicodeString Value, Vcl::Grids::TGridDrawState AState);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Description

Indicates whether a specified cell should be highlighted when it is drawn.

Applications cannot call this protected method. It is called internally by the DrawCell method to determine whether the cell specified by the DataCol and DataRow parameters should be highlighted. HighlightCell returns true if the cell has focus, the cell is selected and Options includes dgAlwaysShowSelection, or the cell is in a selected row and Options includes dgRowSelect.

See Also