[]
Gets or sets a value that indicates whether the user can sort columns by clicking the column header. This is a dependency property.
public bool CanUserSortColumns { get; set; }
Public Property CanUserSortColumns As Boolean
| Type | Description |
|---|---|
| bool | true if the user can sort columns; otherwise, false. The default is false. |
You can set this behavior for individual columns by setting the CanUserSort property. If the CanUserSort property and the CanUserSortColumns property are both set, a value of false will take precedence over a value of true.