RadGrid for ASP.NET

RadGrid Send comments on this topic.
SortExpressions Property
See Also 
Telerik.WebControls Namespace > GridTableView Class : SortExpressions Property


Gets a collection of sort expressions for this table view instance, associated with the column or columns being sorted.   

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property SortExpressions As GridSortExpressionCollection
Visual Basic (Usage)Copy Code
Dim instance As GridTableView
Dim value As GridSortExpressionCollection
 
value = instance.SortExpressions
C# 
public GridSortExpressionCollection SortExpressions {get;}

Return Value

The collection of sort expressions associated with the column or columns being sorted.

Remarks

Modifying the SortExpressions collection will result in change of the order of appearance of items in the table view. If AllowMultiColumnSorting is set to false this collection can only contain one item. Adding other GridSortExpression in the collection in this case will cause existing expression to be deleted or if GridSortExpression with the same same GridSortExpression.FieldName exist its GridSortExpression.SortOrder will be changed.

This property's value is preserved in the ViewState.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also