SortKey Property

Returns or sets the index of the column to use for sorting.

object.SortKey as Integer

Use

The SortKey property options are:

Setting

Description

0

Sort using the ListItem's text property (Default).

X

Sort using the column whose ColumnHeader index is specified here (X).

The Sorted property must be set to True before a list will be sorted by the column specified by SortKey.

See Also

Properties | Sorted property | SortOrder property

Applies To

ListView control


© 2004-2021 looksoftware. All rights reserved.