Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CanSort Property

SqlDataSourceView.CanSort Property

Gets a value indicating whether the SqlDataSourceView object that is associated with the current SqlDataSource control supports a sorted view on the retrieved data.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public override bool CanSort { get; }

Property Value

Type: System.Boolean
true, if sorting is supported; otherwise, false.

The CanSort property returns true, if the current DataSourceMode property is set to the DataSet value and the SortParameterName property is set.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft