TValueListEditor.InsertColRow procedure
Inserts a column or a row at the specified position.
Declaration
procedure InsertColRow(IsColumn: Boolean; index: Integer)Arguments
IsColumn | False if the insert operation is for a row. |
index | Relative position for the inserted column. |
Description
InsertColRow is a procedure used to add a column or a row at the
specified position in the control.
IsColumn indicates if a column is being inserted in the method.
When IsColumn contains
False, a row is inserted at the specified
position.
Index contains the row number where a blank item is
inserted in Strings. Index is relative the number of FixedRows in the
control; ie. when FixedRows = 1 and Index = 1, the item is inserted at
position 0 in Strings. When FixedRows = 0 and Index = 1, the item is inserted
at position 1 in Strings.
When IsColumn is True, an EGridException exception is
raised with the message in rsVLEInvalidRowColOperation. Inserting a column is
not a valid operation in TValueListEditor.
Errors
Raises an EGridException exception with the message in rsVLEInvalidRowColOperation when adding a column in the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
