Share via


BdcDataSource.Sort property

Gets or sets the column names by which to sort the returned data and the sort order.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
Public Property Sort As String
    Get
    Set
'Usage
Dim instance As BdcDataSource
Dim value As String

value = instance.Sort

instance.Sort = value
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public string Sort { get; set; }

Property value

Type: System.String
A String object.

Remarks

The value of this property can contain one or more column names followed by "ASC" (for ascending) or "DESC" (for descending). By default, columns are sorted in ascending order. Use commas to separate multiple column names.

See also

Reference

BdcDataSource class

BdcDataSource members

Microsoft.SharePoint.WebControls namespace