Sets the index for the specified column and automatically re-arranges the order of the other columns accordingly

Namespace: Ico.Awx.DataGrid
Assembly: AwxViewControl (in AwxViewControl.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public void SetColumnIndex(
	string columnKey,
	int index
)
Visual Basic
Public Sub SetColumnIndex ( _
	columnKey As String, _
	index As Integer _
)
JScript
public function SetColumnIndex(
	columnKey : String, 
	index : int
)

Parameters

columnKey
Type: System..::..String
The key of the column whose index must be modified
index
Type: System..::..Int32
The new index of the column

Remarks

UpdateUI() method must be called to apply the changes

Exceptions

ExceptionCondition
System..::..ArgumentException The AwxColumn must exist in the AwxGridView Columns list

See Also