System.Web.UI.WebControls.ObjectDataSourceView.CanRetrieveTotalRowCount 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 retrieving the total number of data rows, in addition to the set of data.

Syntax

public override bool CanRetrieveTotalRowCount { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ObjectDataSourceView.CanRetrieveTotalRowCount property returns true, if the ObjectDataSourceView.SelectCountMethod property is set. The method that returns the count should return the total number of rows that can be paged, not the number of rows in a page. Data-bound controls use the total number of rows that can be paged to determine how to render paging controls. For example, how many numeric pager buttons to render in a System.Web.UI.WebControls.GridView control pager. For more information on paging support, see ObjectDataSource.EnablePaging.

The ObjectDataSourceView.CanRetrieveTotalRowCount property is checked during a call to the ObjectDataSourceView.ExecuteSelect(System.Web.UI.DataSourceSelectArguments) method to ensure that the data source control supports all capabilities requested by setting the various System.Web.UI.DataSourceSelectArguments properties.

Requirements

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