LinqDataSourceSelectEventArgs.OrderGroupsByParameters 屬性


取得用來建立子句的參數集合,該子句指定如何排序分組的資料。Gets the collection of parameters that are used to create the clause that specifies how grouped data is sorted.

 property System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ OrderGroupsByParameters { System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ get(); };
public System.Collections.Generic.IDictionary<string,object> OrderGroupsByParameters { get; }
member this.OrderGroupsByParameters : System.Collections.Generic.IDictionary<string, obj>
Public ReadOnly Property OrderGroupsByParameters As IDictionary(Of String, Object)



物件,包含子句的參數,該子句指定如何排序分組的資料。An object that contains the parameters for the clause that specifies how grouped data is sorted.


當您藉由設定屬性來群組資料時 GroupBy ,可以將 OrderGroupsBy 屬性設定為用來分組資料的其中一個屬性,以排序分組的資料。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.

在事件的 OrderGroupsByParameters 處理常式中,您可以使用屬性來存取 Order Groups by 子句的參數 SelectingYou use the OrderGroupsByParameters property to access parameters for the Order Groups By clause in a handler for the Selecting event. 您可以藉由新增或移除此集合中的參數,修改 Order group By 子句。You can modify the Order Groups By clause by adding or removing parameters from this collection.

根據預設, OrderGroupsByParameters 物件的屬性會 LinqDataSourceSelectEventArgs 包含您以宣告方式加入至 OrderGroupsByParameters 控制項之的任何參數 LinqDataSourceBy default, the OrderGroupsByParameters property of the LinqDataSourceSelectEventArgs object contains any parameters that you added declaratively to the OrderGroupsByParameters of the LinqDataSource control.