DataViewSetting.Sort 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 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.