Method SetColumnsOrder
SetColumnsOrder(params ListControlColumn[])
Reorders the columns in the control to match the specified sequence.
public virtual void SetColumnsOrder(params ListControlColumn[] columns)
Parameters
columnsListControlColumn[]An array of ListControlColumn objects that defines the desired order of columns. Only columns currently present in the control are affected. Columns not included in the array retain their relative order after the reordered columns.
Remarks
If the control does not contain any columns, or if columns is null
or empty, this method has no effect. Columns specified that are not present in the control are
ignored.
SetColumnsOrder(params string[])
Sets the display order of columns based on the specified array of column names.
public virtual void SetColumnsOrder(params string[] columnNames)
Parameters
columnNamesstring[]An array of column names that defines the desired display order. Each name should correspond to an existing column. Cannot be null.