Xceed Grid for WinForms v4.3 Documentation
Add(String,Boolean) Method


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Collections Namespace > SortedColumnList Class > Add Method : Add(String,Boolean) Method
A string representing the name of the column to add.
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.
Adds a column with the specified fieldname to the list.
Syntax
'Declaration
 
Public Overloads Sub Add( _
   ByVal fieldName As String, _
   ByVal ascending As Boolean _
) 
'Usage
 
Dim instance As SortedColumnList
Dim fieldName As String
Dim ascending As Boolean
 
instance.Add(fieldName, ascending)
public void Add( 
   string fieldName,
   bool ascending
)

Parameters

fieldName
A string representing the name of the column to add.
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.
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

Reference

SortedColumnList Class
SortedColumnList Members
Overload List