|
|
|
|
|
- Use conditions
- The different types of column indexes
- Move and anchor columns
- Moving columns in horizontal Table controls
<Table>.MoveColumn (Function) In french: <Table>.DéplaceColonne Moves a column in a Table or TreeView Table control. Remarks: - To move a row in a Table control, use <Table>.MoveLine.
- This function is equivalent to the following manipulation in execution: click on a column header and move the column while holding down the left mouse button.
TABLE_TableProduit.DéplaceColonne(COL_PrixProduit, 1)
Syntax
<Table control>.MoveColumn(<Column> , <Index of destination column>)
<Table control>: Control name Name of the control to be used. This control can correspond to: - a Table control.
- a TreeView Table control.
<Column>: Control name Name of the column to move. The column name is returned by <Table>.EnumColumn. <Index of destination column>: Integer New position of the column in the control. The first column (even if it is invisible) is column #1. Remarks Use conditions <Table>.MoveColumn can be used on: - Table or TreeView Table controls based on a data file.
- Table or TreeView Table controls populated programmatically.
- single-selection or multi-selection controls.
The different types of column indexes There are 2 types of indexes for columns: - Visible position index: column index at runtime.
- Creation index: column index when the Table field is created in the editor.
These indexes change if the user moves the columns. <Table>.MoveColumn uses the index of the visible position. Move and anchor columns - 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|