แก้ไข

แชร์ผ่าน


DataViewSetting.Sort Property

Definition

Gets or sets a value indicating the sort to apply in the 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

Property Value

The sort to apply in the DataView.

Remarks

Sort can have two defaults based on the value of RowFilter property. If RowFilter is null or empty (that is, the value is not explicitly specified), the DataRowView in the DataView is sorted on the position or ordinal of DataRow in the Rows collection. The Sort default, an empty string, causes a DataRowView in DataView to be sorted on the position or ordinal of DataRow in the Rows collection.

Applies to