Class
GridViewSortDescriptorCollection

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
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

GridViewSortDescriptorCollection(GridViewTemplate)

Initializes a new instance of the GridViewSortDescriptorCollection class.

Declaration

cs-api-definition
public GridViewSortDescriptorCollection(GridViewTemplate owner)

Parameters

owner

GridViewTemplate

The owner.

Methods

ClearItems()

Clears the items.

Declaration

cs-api-definition
protected override void ClearItems()

Overrides SortDescriptorCollection.ClearItems()

InsertItem(int, SortDescriptor)

Inserts the item.

Declaration

cs-api-definition
protected override void InsertItem(int index, SortDescriptor item)

Parameters

index

int

The index.

item

SortDescriptor

The item.

Overrides SortDescriptorCollection.InsertItem(int, SortDescriptor)

MoveItem(int, int)

Moves the item.

Declaration

cs-api-definition
protected override void MoveItem(int oldIndex, int newIndex)

Parameters

oldIndex

int

The old index.

newIndex

int

The new index.

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

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs args)

Parameters

args

NotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Overrides NotifyCollection<SortDescriptor>.OnCollectionChanged(NotifyCollectionChangedEventArgs)

OnCollectionChanging(NotifyCollectionChangingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnCollectionChanging(NotifyCollectionChangingEventArgs args)

Parameters

args

NotifyCollectionChangingEventArgs

The NotifyCollectionChangingEventArgs instance containing the event data.

RemoveItem(int)

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

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

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)

SetItem(int, SortDescriptor)

Sets the item.

Declaration

cs-api-definition
protected override void SetItem(int index, SortDescriptor item)

Parameters

index

int

The index.

item

SortDescriptor

The item.

Overrides SortDescriptorCollection.SetItem(int, SortDescriptor)

Events

CollectionChanging

Occurs before the collection changes.

Declaration

cs-api-definition
public event NotifyCollectionChangingEventHandler CollectionChanging

Event Value

NotifyCollectionChangingEventHandler

Implements INotifyCollectionChanging.CollectionChanging