Editare

Partajați prin


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.

public:
 virtual property bool CanSort { bool get(); };
public override bool CanSort { get; }
member this.CanSort : bool
Public Overrides ReadOnly Property CanSort As Boolean

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

See also