ListView_ColumnSetPosition()

Examples


The ListView_ColumnSetPosition() function sets the position of the specified column of a list view field.

Syntax

ListView_ColumnSetPosition(list_view_field, column_index, position)

Parameters

list_view_field – The list view field containing the specified column.

column_index – An integer specifying the index of the column whose position is being set. The value 1 indicates the first column that was added to the list view field.

Dragging a column to a different position in the list view does not affect the column index.


position – An integer specifying the position for the column. The value 1 indicates the first column in the list.

Return value

An integer indicating the previous position of the column.

Comments

Use the ListView_ColumnSetPosition() function to set all of the column positions. Then use the redraw statement to update the appearance of the list view field.


Documentation Feedback