Export (0) Print
Expand All

LinqDataSourceSelectEventArgs.OrderGroupsByParameters Property

Gets the collection of parameters that are used to create the clause that specifies how grouped data is sorted.

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

public IDictionary<string, Object> OrderGroupsByParameters { get; }

Property Value

Type: System.Collections.Generic.IDictionary<String, Object>
An object that contains the parameters for the clause that specifies how grouped data is sorted.

When you group data by setting the GroupBy property, you can sort the grouped data by setting the OrderGroupsBy property to one of the properties used for grouping the data.

You use the OrderGroupsByParameters property to access parameters for the Order Groups By clause in a handler for the Selecting event. You can modify the Order Groups By clause by adding or removing parameters from this collection.

By default, the OrderGroupsByParameters property of the LinqDataSourceSelectEventArgs object contains any parameters that you added declaratively to the OrderGroupsByParameters of the LinqDataSource control.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5
© 2015 Microsoft