ComponentOne DataGrid for WPF and Silverlight
CanUserSort Property (C1DataGrid)

C1.Silverlight.DataGrid Namespace > C1DataGrid Class : CanUserSort Property
Gets or sets a value indicating whether the user is able to sort the data by clicking the column header.
Syntax
'Declaration
 
Public Property CanUserSort As System.Boolean
public System.bool CanUserSort {get; set;}
Remarks

If set to false, the user will not be able to sort the data, otherwise it will depend on the clicked column settings.

The first time the user click the column header the data will be sorted in ascending order, and the second time in descending order. if the Ctrl key is pressed while the user clicks the column header the sorting state of the others column will be preserved, otherwise the current column sort criteria will override the previous sorting state.

See Also

Reference

C1DataGrid Class
C1DataGrid Members