Rediger

Del via


LinqDataSource.OrderGroupsByParameters Property

Definition

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

public:
 property System::Web::UI::WebControls::ParameterCollection ^ OrderGroupsByParameters { System::Web::UI::WebControls::ParameterCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.ParameterCollection OrderGroupsByParameters { get; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.OrderGroupsByParameters : System.Web.UI.WebControls.ParameterCollection
Public ReadOnly Property OrderGroupsByParameters As ParameterCollection

Property Value

The parameters that are used to create the Order Groups By clause.

Attributes

Remarks

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.

Applies to