Export (0) Print
Expand All

LinqDataSource.OrderGroupsByParameters Property

Gets the collection of parameters that are used to create the Order Groups By clause.

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

[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
public ParameterCollection OrderGroupsByParameters { get; }

Property Value

Type: System.Web.UI.WebControls.ParameterCollection
The parameters that are used to create the Order Groups By clause.

The LinqDataSource control uses parameters in the OrderGroupsByParameters collection to create the Order Groups By clause at run time.

You add values to the OrderGroupsByParameters collection only when you must set values at run time in the Order Groups By clause. You can define the fields that are used to order the data by using the OrderGroupsBy property.

You can set parameters in the OrderGroupsByParameters collection and match the parameters to placeholders in the OrderGroupsBy property. However, when you use this approach, the parameters in the OrderGroupsByParameters collection cannot represent a column name; they must represent values. You can set a parameter to a value and then compare that value to a property. For example, you can order the data based on whether the values in a property are less than the run-time value represented by the parameter.

.NET Framework

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