Skip to content

AllowColumnSort Property

Description

Specifies whether GridColumns can be sorted.

Property Type

Read-write property.

Syntax (Visual Basic)

Public Property AllowColumnSort() As Boolean

Remarks

If False, this will only disable column sorting by clicking on the column header. You can still sort the columns by adding them to the SortOrder collection.

If True, the columns' Sortable property must also be True. When True, the column header can be clicked, and the column will toggle between ascending and descending order. An arrow icon is displayed on the column header indicating how the column is sorted: an up arrow for ascending and a down arrow for descending order.

Example

AllowColumnSort Sample (Visual Basic)

This sample illustrates how to disable column sorting by clicking on the column headers. Columns can still be sorted by adding them to the SortOrder collection.

' This will disable column sorting by clicking on the column header  
wndGridControl.AllowColumnSort = False

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.