RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.GetEditText Method

Returns the value of the indicated cell formatted for editing.

Pascal
function GetEditText(ACol: Longint; ARow: Longint): string; override;
C++
virtual __fastcall AnsiString GetEditText(Longint ACol, Longint ARow);

The inplace editor calls GetEditText to obtain the text for the indicated cell. GetEditText locates the field component for the cell from the Columns array and returns its value formatted for editing. 

The ACol and ARow parameters indicate the index of the row and column of the cell in the grid. The ACol parameter is the "raw" column index, which is not the same as the index of the column in the Columns array if the Options property includes dgIndicator.

Note: The string returned by GetEditText may differ from the string returned by the GetFieldValue method if the field formats its value differently for editing and display.
 

 

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