System.Web.UI.DataSourceSelectArguments.RetrieveTotalRowCount Property

Gets or sets a value indicating whether a data source control should retrieve a count of all the data rows during a data retrieval operation.

Syntax

public bool RetrieveTotalRowCount { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DataSourceSelectArguments.RetrieveTotalRowCount property supports paging scenarios. Set this property to true to request a total row count from the data source control during the data-retrieval operation. Check the DataSourceView.CanRetrieveTotalRowCount property to determine whether a data source view supports retrieving a total row count. If the data source supports it, the DataSourceSelectArguments.TotalRowCount property is set by the data source control during the course of a data retrieval operation and the total data row count is returned in the DataSourceSelectArguments.TotalRowCount property, much as a value is returned in an output parameter of a method.

Note:

If any of the System.Web.UI.DataSourceSelectArguments properties are set, but the currently bound data source control does not support the requested capability, an InvalidOperationException exception is thrown when the DataSourceSelectArguments.RaiseUnsupportedCapabilitiesError(DataSourceView) method is called.

Requirements

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