RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.HighlightCell Method

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

Pascal
function HighlightCell(DataCol: Integer; DataRow: Integer; const Value: string; AState: TGridDrawState): Boolean; virtual;
C++
virtual __fastcall Boolean HighlightCell(int DataCol, int DataRow, const AnsiString Value, TGridDrawState AState);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!