RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TValueListEditor.DeleteRow Method

Deletes a row in the value list editor and a corresponding string from the associated TStrings object.

Pascal
procedure DeleteRow(ARow: Integer); override;
C++
virtual __fastcall DeleteRow(int ARow);

Call DeleteRow to remove the row specified by the ARow parameter. Delete removes the corresponding string from the TStrings object being edited and updates the display. 

ARow must be the index of a row that displays a name/value pair. That is, it can't be less than 0 or greater than the number of rows. If DisplayOptions includes doColumnTitles, ARow can't be 0, because that is the title row, not a name/value pair in the associated TStrings object.

Note: DeleteRow deletes the specified row regardless of the value of KeyOptions. The keyDelete member of KeyOptions controls only whether the user can delete a row by pressing the Delete key.
 

 

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