Home | Sign in | English EN
  • Use conditions
  • The different types of column subscripts
  • Move and anchored column
  • Move and horizontal Table control
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Moves a column in a Table or TreeView Table control.
  • To move a row in a Table control, use TableMoveLine.
  • This function is equivalent to the following operation performed at run time: click the header of a column and move the column while keeping the left mouse button down.
// Move the "COL_ProductPrice" column
// on the far left side in the "TABLE_ProductTable" control
TABLE_ProductTable.MoveColumn(COL_ProductPrice, 1)
<Table control>.MoveColumn(<Column> , <Subscript of destination column>)
<Table control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Column>: Control name
Name of the column to move. The name of a column is returned by <Table>.EnumColumn.
<Subscript of destination column>: Integer
New position of the column in the control. The first column (even if it is invisible) is column #1.

Use conditions

<Table>.MoveColumn can be used on:
  • a browsing or memory control,
  • a single-selection or multiselection control.

The different types of column subscripts

Two types of subscripts are available for the columns:
  • Subscript of the visible position: subscript of the column at run time.
  • Creation subscript: subscript of the column when creating the Table control in the editor.
These subscripts are different if the columns have been moved by the user.
<Table>.MoveColumn is using the subscript of visible position.

Move and anchored column

  • If the column is moved among some anchored columns, this column automatically becomes anchored.
  • If the column is moved outside the anchored columns, this column is not anchored anymore.
Windows MobileJavaUser code (UMC)

Move and horizontal Table control

  • The rows will be moved if <Table>.MoveColumn is used on an horizontal Table control.
  • To move the columns in an horizontal Table control, use TableMoveLine.
Component: wd260obj.dll
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment