New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewSortDescriptorCollection : SortDescriptorCollection, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, INotifyCollectionChanging

Inheritance: objectCollection<SortDescriptor>NotifyCollection<SortDescriptor>SortDescriptorCollectionGridViewSortDescriptorCollection

Derived Classes: RadSortExpressionCollection

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyCollectionChangingINotifyPropertyChanged...

Inherited Members SortDescriptorCollection.Add(string, ListSortDirection)SortDescriptorCollection.Contains(string)SortDescriptorCollection.IndexOf(string)SortDescriptorCollection.ToString()SortDescriptorCollection.Remove(string)SortDescriptorCollection.CreateEventArguments(NotifyCollectionChangedAction, object, int)SortDescriptorCollection.CreateEventArguments(NotifyCollectionChangedAction, object, object, int)SortDescriptorCollection.UseCaseSensitiveFieldNamesSortDescriptorCollection.ExpressionNotifyCollection<SortDescriptor>.EmptyNotifyCollection<SortDescriptor>.Move(int, int)NotifyCollection<SortDescriptor>.AddRange(params SortDescriptor[])NotifyCollection<SortDescriptor>.AddRange(IEnumerable<SortDescriptor>)NotifyCollection<SortDescriptor>.BeginUpdate()NotifyCollection<SortDescriptor>.EndUpdate()NotifyCollection<SortDescriptor>.EndUpdate(bool)NotifyCollection<SortDescriptor>.DeferRefresh()NotifyCollection<SortDescriptor>.CreateEventArguments(NotifyCollectionChangedAction)NotifyCollection<SortDescriptor>.OnPropertyChanged(PropertyChangedEventArgs)NotifyCollection<SortDescriptor>.OnPropertyChanged(string)NotifyCollection<SortDescriptor>.VersionNotifyCollection<SortDescriptor>.SuspendedNotifyCollection<SortDescriptor>.CollectionChangedNotifyCollection<SortDescriptor>.PropertyChangedCollection<SortDescriptor>.Add(SortDescriptor)Collection<SortDescriptor>.Clear()Collection<SortDescriptor>.CopyTo(SortDescriptor[], int)Collection<SortDescriptor>.Contains(SortDescriptor)Collection<SortDescriptor>.GetEnumerator()Collection<SortDescriptor>.IndexOf(SortDescriptor)Collection<SortDescriptor>.Insert(int, SortDescriptor)Collection<SortDescriptor>.Remove(SortDescriptor)Collection<SortDescriptor>.RemoveAt(int)Collection<SortDescriptor>.CountCollection<SortDescriptor>.ItemsCollection<SortDescriptor>.this[int]...

Constructors

Initializes a new instance of the GridViewSortDescriptorCollection class.

C#
public GridViewSortDescriptorCollection(GridViewTemplate owner)
Parameters:ownerGridViewTemplate

The owner.

Methods

Clears the items.

C#
protected override void ClearItems()

Overrides: SortDescriptorCollection.ClearItems()

Inserts the item.

C#
protected override void InsertItem(int index, SortDescriptor item)
Parameters:indexint

The index.

itemSortDescriptor

The item.

Overrides: SortDescriptorCollection.InsertItem(int, SortDescriptor)

Moves the item.

C#
protected override void MoveItem(int oldIndex, int newIndex)
Parameters:oldIndexint

The old index.

newIndexint

The new index.

Overrides: NotifyCollection<SortDescriptor>.MoveItem(int, int)

Raises the event.

C#
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters:argsNotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Overrides: NotifyCollection<SortDescriptor>.OnCollectionChanged(NotifyCollectionChangedEventArgs)

Raises the event.

C#
protected virtual void OnCollectionChanging(NotifyCollectionChangingEventArgs args)
Parameters:argsNotifyCollectionChangingEventArgs

The NotifyCollectionChangingEventArgs instance containing the event data.

Removes the element at the specified index of the Collection<T>.

C#
protected override void RemoveItem(int index)
Parameters:indexint

The zero-based index of the element to remove.

Exceptions:

ArgumentOutOfRangeException

index is less than zero.-or-index is equal to or greater than Count.

Overrides: SortDescriptorCollection.RemoveItem(int)

Sets the item.

C#
protected override void SetItem(int index, SortDescriptor item)
Parameters:indexint

The index.

itemSortDescriptor

The item.

Overrides: SortDescriptorCollection.SetItem(int, SortDescriptor)

Events

Occurs before the collection changes.

C#
public event NotifyCollectionChangingEventHandler CollectionChanging

Implements: INotifyCollectionChanging.CollectionChanging