Skip to main content

RepositoryItemLookUpEdit.SortColumnIndex Property

Gets or sets the column index against which data is sorted.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Behavior")]
public int SortColumnIndex { get; set; }

Property Value

Type Description
Int32

The zero-based column index against which data is sorted.

Remarks

The editor’s dropdown list can be sorted against a single column. The SortColumnIndex property specifies the index of this column.

To specify a column’s sort order, set the column’s LookUpColumnInfo.SortOrder property.

Set the RepositoryItemLookUpEdit.HeaderClickMode property to HeaderClickMode.Sorting to enable end-users to sort columns on a header click.

See Also