DataViewSetting.Sort 屬性

定義

取得或設定數值,表示要在 DataView 中套用的排序。

public:
 property System::String ^ Sort { System::String ^ get(); void set(System::String ^ value); };
public string Sort { get; set; }
member this.Sort : string with get, set
Public Property Sort As String

屬性值

要在 DataView 中套用的排序。

備註

Sort 根據屬性值,可以有兩個 RowFilter 預設值。 如果 RowFilter 為 null 或空白 (即未明確指定值) ,則 DataRowView 中的 DataView 會依集合中Rows的位置或序數DataRow排序。 預設Sort為空字串,會導致 DataRowViewDataView 在集合中Rows的位置或序數DataRow上排序 。

適用於