Skip to main content
A newer version of this page is available. .

RepositoryItemLookUpEdit.SortColumnIndex Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

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

Property Value

Type Default Description
Int32 0

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