Sign in Join
FPDoc Onlineexperiment

TValueListEditor.ExchangeColRow procedure

Member of TValueListEditorpublicIn unit ValEdit

Swaps the columns or rows at the specified positions.

Declaration

pascal
procedure ExchangeColRow(IsColumn: Boolean; index: Integer; 
 WithIndex: Integer); override

Arguments

IsColumnFalse when exchanging row values.
index

Position for one of the exchanged values.

WithIndex

Position for one of the exchanged values.

Description

ExchangeColRow is an overridden procedure used to swap the columns or rows at the specified positions in the control.

IsColumn indicates if the exchanged values are in a column or in a row in the control. The two-column layout in TValueListEditor prevents exchanging column values. When IsColumn is True, an EGridException exception is raised with the message in rsVLEInvalidRowColOperation.

When IsColumn is False, the inherited ExchangeColRow method is called using Index and WithIndex as arguments.

Errors

An EGridException exception is raised with the message in rsVLEInvalidRowColOperation when trying to exchange column values in the control.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.