RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringGrid.DrawCell Method

Generates an OnDrawCell event.

Pascal
procedure DrawCell(ACol: Longint; ARow: Longint; ARect: TRect; AState: TGridDrawState); override;
C++
virtual __fastcall DrawCell(Longint ACol, Longint ARow, TRect ARect, TGridDrawState AState);

DrawCell is called automatically whenever a cell in the grid is drawn. If the DefaultDrawing property is true, the background of the cell is painted before DrawCell is called, and the 3D effects of the fixed cells or the focus rectangle around the focused cell are drawn after DrawCell. Descendants of TCustomDrawGrid can override this method to draw the contents of the cell or to block the OnDrawCell event. 

 

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