Export (0) Print
Expand All

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.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public bool RetrieveTotalRowCount { get; set; }

Property Value

Type: System.Boolean
true if the data source control should retrieve a total data row count; otherwise, false.

The 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 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 TotalRowCount property, much as a value is returned in an output parameter of a method.

Important noteImportant

If any of the 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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft