ObjectDataSourceView.CanSort Property

Definition

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

C#
public override bool CanSort { get; }

Property Value

true.

Remarks

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

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also