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:
Inherited Members
Constructors
Initializes a new instance of the RadSortExpressionCollection class.
C#
public RadSortExpressionCollection(GridViewTemplate owner)
The owner.
Methods
Adds the specified field name.
C#
public void Add(string fieldName, RadSortOrder sortOrder)
Name of the field.
sortOrderRadSortOrderThe sort order.
Adds the specified sort expression.
Gets the descriptor.
C#
public T GetDescriptor<T>(int index) where T : SortDescriptor
The index.
Returns:T