TValueListEditor.MoveColRow procedure
Moves the specified column or row to the new position.
Declaration
procedure MoveColRow(IsColumn: Boolean; FromIndex: Integer;
ToIndex: Integer)Arguments
IsColumn | True if the operation affects a column. |
FromIndex | Original position of the row or column. |
ToIndex | Target position for the row or column. |
Description
MoveColRow is a procedure used to move the specified column or row
to the new position.
IsColumn indicates if the positions are in a
column or in a row in the control. The two-column layout in TValueListEditor
prevents moving column values. When IsColumn is
True, an
EGridException exception is raised with the message in
rsVLEInvalidRowColOperation.
When IsColumn is False, the values in Strings stored at the
relative position in FromIndex are deleted. The values are
re-inserted in Strings at the relative position in ToIndex.
See also
- Strings
- EGridException
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
