Class DataGridSortColumnsChangingEventArgs
Represents the data for the SortColumnsChanging event.
Inheritance
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public sealed class DataGridSortColumnsChangingEventArgs : CancelEventArgs
Constructors
DataGridSortColumnsChangingEventArgs(IList<SortColumnDescription>, IList<SortColumnDescription>, NotifyCollectionChangedAction, Object)
Initializes a new instance of the DataGridSortColumnsChangingEventArgs class.
Declaration
public DataGridSortColumnsChangingEventArgs(IList<SortColumnDescription> addedItems, IList<SortColumnDescription> removedItems, NotifyCollectionChangedAction action, object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<SortColumnDescription> | addedItems | The list of items added for sorting. |
System.Collections.Generic.IList<SortColumnDescription> | removedItems | The list of items removed from the sorting. |
System.Collections.Specialized.NotifyCollectionChangedAction | action | The System.Collections.Specialized.NotifyCollectionChangedAction that represents collection changed action i.e. whether an item is added, removed, replaced, reset or moved in the collection. |
System.Object | originalSource | The SfDataGrid that raises the event. |
Properties
Action
Gets the collection changed action i.e. whether an item is added, removed, replaced, reset or moved in the collection.
Declaration
public NotifyCollectionChangedAction Action { get; }
Property Value
Type | Description |
---|---|
System.Collections.Specialized.NotifyCollectionChangedAction | Returns the System.Collections.Specialized.NotifyCollectionChangedAction that represents the collection changed action. |
AddedItems
Gets a list that contains the items to be sorted.
Declaration
public IList<SortColumnDescription> AddedItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<SortColumnDescription> | The list of items added to sorting. |
RemovedItems
Gets a list that contains the items to be unsorted.
Declaration
public IList<SortColumnDescription> RemovedItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<SortColumnDescription> | The list of items removed from sorting. |