System.Web.UI.DataSourceView.CanRetrieveTotalRowCount Property

Gets a value indicating whether the System.Web.UI.DataSourceView object associated with the current System.Web.UI.DataSourceControl object supports retrieving the total number of data rows, instead of the data.

Syntax

public virtual bool CanRetrieveTotalRowCount { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A data-bound control can request a total row count by adding the DataSourceCapabilities.RetrieveTotalRowCount field to the System.Web.UI.DataSourceSelectArguments object passed to the DataSourceView.ExecuteSelect(DataSourceSelectArguments) method. If a data-bound control requests a total row count, but the DataSourceView.CanRetrieveTotalRowCount 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