RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.SetEditText Method

Updates the edited version of the current cell's data.

Pascal
procedure SetEditText(ACol: Longint; ARow: Longint; const Value: string); override;
C++
virtual __fastcall SetEditText(Longint ACol, Longint ARow, const AnsiString Value);

The inplace editor calls SetEditText so that the grid can store the new value for the current cell. The grid stores this value until the user moves to a new cell or presses Escape. If the user moves to a new cell, this value is written to the record in the database. If the user presses Escape, the value is discarded. 

 

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