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

Represents a collection of GridSortField objects.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
[ListBindable(BindableSupport.No)]
public class RadSortExpressionCollection : GridViewSortDescriptorCollection, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, INotifyCollectionChanging

Inheritance: objectCollection<SortDescriptor>NotifyCollection<SortDescriptor>SortDescriptorCollectionGridViewSortDescriptorCollectionRadSortExpressionCollection...

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyCollectionChangingINotifyPropertyChanged...

Inherited Members GridViewSortDescriptorCollection.InsertItem(int, SortDescriptor)GridViewSortDescriptorCollection.SetItem(int, SortDescriptor)GridViewSortDescriptorCollection.MoveItem(int, int)GridViewSortDescriptorCollection.RemoveItem(int)GridViewSortDescriptorCollection.ClearItems()GridViewSortDescriptorCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs)GridViewSortDescriptorCollection.OnCollectionChanging(NotifyCollectionChangingEventArgs)GridViewSortDescriptorCollection.CollectionChangingSortDescriptorCollection.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 RadSortExpressionCollection class.

C#
public RadSortExpressionCollection(GridViewTemplate owner)
Parameters:ownerGridViewTemplate

The owner.

Methods

Adds the specified field name.

C#
public void Add(string fieldName, RadSortOrder sortOrder)
Parameters:fieldNamestring

Name of the field.

sortOrderRadSortOrder

The sort order.

Adds the specified sort expression.

C#
public void Add(string expression)
Parameters:expressionstring

The expression.

Gets the descriptor.

C#
public T GetDescriptor<T>(int index) where T : SortDescriptor
Parameters:indexint

The index.

Returns:

T