Export (0) Print
Expand All

LinqDataSourceSelectEventArgs.OrderByParameters Property

Gets the collection of parameters that is used to create the OrderBy clause.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public IOrderedDictionary OrderByParameters { get; }

Property Value

Type: System.Collections.Specialized.IOrderedDictionary
An object that contains the parameters for the OrderBy clause.

You use the OrderByParameters property to access parameters for the OrderBy clause in a handler for the Selecting event. You can modify the OrderBy clause by adding or removing parameters from this collection. By default, the OrderByParameters property of the LinqDataSourceSelectEventArgs object contains any parameters that you added to the OrderByParameters of the LinqDataSource control.

When the AutoGenerateOrderByClause property is set to true, parameters in the OrderByParameters collection do not have to be named. The data will be ordered based on the sequence of the parameters in the OrderByParameters collection.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft