System.Web.UI.DataSourceView.CanSort Property

Gets a value indicating whether the System.Web.UI.DataSourceView object associated with the current System.Web.UI.DataSourceControl object supports a sorted view on the underlying data source.

Syntax

public virtual bool CanSort { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A data-bound control can request sorting by adding the DataSourceCapabilities.Sort field to the System.Web.UI.DataSourceSelectArguments object passed to the DataSourceView.ExecuteSelect(DataSourceSelectArguments) method. If a data-bound control requests sorting, but the DataSourceView.CanSort property returns false, the data source view throws an exception.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0