System.Web.UI.WebControls.ObjectDataSourceView.CanSort Property

Gets a value indicating whether the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the current System.Web.UI.WebControls.ObjectDataSource control supports a sorted view on the underlying data source.

Syntax

public override bool CanSort { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Because the System.Web.UI.WebControls.ObjectDataSource control only supports sorting data when the ObjectDataSource.Select method returns a System.Data.DataSet, System.Data.DataView, or System.Data.DataTable object, the view object cannot determine whether sorting is supported until the ObjectDataSourceView.Select(System.Web.UI.DataSourceSelectArguments) method is called and returns. For this reason, the ObjectDataSourceView.CanSort property always returns true.

Requirements

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