Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / Column Class / SortDirection Property


In This Topic
    SortDirection Property (Column)
    In This Topic
    Gets or sets a value indicating the direction in which the column is sorted.
    Syntax
    'Declaration
     
    <DescriptionAttribute("Indicates the direction in which the column is sorted.")>
    <CategoryAttribute("Data")>
    <ApplyToDesignerAttribute(True)>
    Public Property SortDirection As SortDirection
    'Usage
     
    Dim instance As Column
    Dim value As SortDirection
     
    instance.SortDirection = value
     
    value = instance.SortDirection
    [Description("Indicates the direction in which the column is sorted.")]
    [Category("Data")]
    [ApplyToDesigner(true)]
    public SortDirection SortDirection {get; set;}

    Property Value

    SortDirection.Ascending if the column is sorted in an ascending direction; SortDirection.Descending if the column is sorted in a descending direction; SortDirection.None if the column is not sorted.
    Remarks

    Setting the SortDirection to Ascending or Descending will add the column to the grid's DetailGrid.SortedColumns property. Setting the SortDirection to none will remove the column from the collection.

    Requirements

    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

    See Also