Class SortColumnDescriptions
Represents a collection of sorting column description that raises notification for both collection and item changes.
Inheritance
System.Object
SortColumnDescriptions
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class SortColumnDescriptions : ObservableCollection<SortColumnDescription>
Remarks
It can allows to add multiple SortColumnDescription instance to perform sorting.
Constructors
SortColumnDescriptions()
Initializes a new instance of the SortColumnDescriptions class.
Declaration
public SortColumnDescriptions()
Properties
Item[String]
Gets the column from the SortColumnDescriptions collection for the given column name.
Declaration
public SortColumnDescription this[string columnName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | The columnName to retrieve the corresponding column. |
Property Value
Type | Description |
---|---|
SortColumnDescription | Returns the corresponding column from the SortColumnDescriptions collection. |
Methods
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Occurs when the collection is changed.
Declaration
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | The System.Collections.Specialized.NotifyCollectionChangedEventArgs that contains the event data. |