LinqDataSource.OrderGroupsByParameters Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om