RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringGridStrings.Insert Method

Prevents strings from being inserted.

Pascal
procedure Insert(Index: Integer; const S: string); override;
C++
virtual __fastcall Insert(int Index, const AnsiString S);

Because TStringGridStrings objects represent the rows or columns of a string grid, the number of entries in the list must correspond exactly to the number of cells in the corresponding row or column. Rather than allow entries to be inserted, destroying this correspondence, Insert raises an EInvalidGridOperation exception. 

 

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