C1.WPF.DataGrid Namespace > C1DataGrid Class : CanUserSort Property |
'Declaration
Public Property CanUserSort As System.Boolean
public System.bool CanUserSort {get; set;}
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2