ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / C1DataGrid Class / CanUserSort Property

In This Topic
    CanUserSort Property (C1DataGrid)
    In This Topic
    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 Boolean
    public 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