System.Web.UI.DataSourceSelectArguments.MaximumRows Property

Gets or sets a value that represents the maximum number of data rows that a data source control returns for a data retrieval operation.

Syntax

public int MaximumRows { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DataSourceSelectArguments.MaximumRows property supports paging scenarios. Data-bound controls check a data source view's DataSourceView.CanPage property at run time, and add a DataSourceCapabilities.Page capability using the DataSourceSelectArguments.AddSupportedCapabilities(DataSourceCapabilities) method if the view supports paging. If the data-bound control fails to add the capability, and the paging properties are set on a System.Web.UI.DataSourceSelectArguments object passed to the data source view during a data retrieval operation, an InvalidOperationException exception might be thrown.

The data-bound control can request a subset of data from a data source control for paging by setting the DataSourceSelectArguments.StartRowIndex and DataSourceSelectArguments.MaximumRows properties on the System.Web.UI.DataSourceSelectArguments object passed to the DataSourceView.Select(DataSourceSelectArguments, DataSourceViewSelectCallback) 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