RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.GetFieldValue Method

Returns the value of the indicated cell formatted for display.

Pascal
function GetFieldValue(ACol: Integer): string;
C++
__fastcall AnsiString GetFieldValue(int ACol);

The DefaultDrawColumnCell method calls GetFieldValue to obtain the text that should be displayed in a cell. Applications do not call this protected method. 

The ACol parameter is the index of the column in the columns array. If the Options property includes dgIndicator, this is not the same as the index of the column in the physical display. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!