Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Collections Namespace / SortedColumnList Class / Add Method / Add(Column,Boolean) Method
A reference to the Xceed.Grid.Column object to add to the list.
true if the column will sort the data rows in an ascending direction; false if the data rows are to be sorted in a descending direction.


In This Topic
    Add(Column,Boolean) Method
    In This Topic
    Adds a column to the list.
    Syntax
    'Declaration
     
    Public Overloads Sub Add( _
       ByVal column As Column, _
       ByVal ascending As Boolean _
    ) 
    'Usage
     
    Dim instance As SortedColumnList
    Dim column As Column
    Dim ascending As Boolean
     
    instance.Add(column, ascending)
    public void Add( 
       Column column,
       bool ascending
    )

    Parameters

    column
    A reference to the Xceed.Grid.Column object to add to the list.
    ascending
    true if the column will sort the data rows in an ascending direction; false if the data rows are to be sorted in a descending direction.

    Return Value

    The index at which the column was added.
    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