Class SortColumnsChangingEventArgs
Provides data for SortColumnsChanging event.
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Events
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public sealed class SortColumnsChangingEventArgs : GridCancelEventArgs
Constructors
SortColumnsChangingEventArgs(IList<SortColumnDescription>, IList<SortColumnDescription>, NotifyCollectionChangedAction, Object)
Initializes a new instance of the SortColumnsChangingEventArgs class.
Declaration
public SortColumnsChangingEventArgs(IList<SortColumnDescription> addedItems, IList<SortColumnDescription> removedItems, NotifyCollectionChangedAction action, object originalSource)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<SortColumnDescription> | addedItems | The list of SortColumnDescription that are being sorted in view. |
System.Collections.Generic.IList<SortColumnDescription> | removedItems | The list of SortColumnDescription that are being unsorted in view. |
System.Collections.Specialized.NotifyCollectionChangedAction | action | Indicates the corresponding collection changed actions during sorting operation. |
System.Object | originalSource | The source of the event. |
Properties
Action
Gets the corresponding collection changed actions performed during sorting operation.
Declaration
public NotifyCollectionChangedAction Action { get; }
Property Value
Type | Description |
---|---|
System.Collections.Specialized.NotifyCollectionChangedAction | One of the System.Collections.Specialized.NotifyCollectionChangedAction performed during sorting operation. |
AddedItems
Gets the list of SortColumnDescription that are being sorted in view.
Declaration
public IList<SortColumnDescription> AddedItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<SortColumnDescription> | The list of SortColumnDescription collection that were sorted in view. |
CancelScroll
Gets or sets a value indicating whether the SFDataGrid should scroll to CurrentItem after sorting.
Declaration
public bool CancelScroll { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the scrolling is canceled while sorting; otherwise, false. |
RemovedItems
Gets the list of SortColumnDescription that are being unsorted in view.
Declaration
public IList<SortColumnDescription> RemovedItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<SortColumnDescription> | The list of SortColumnDescription collection that were unsorted in view. |