System.Web.UI.DataSourceSelectArguments.StartRowIndex Property

Gets or sets a value that represents the starting position the data source control should use when retrieving data rows during a data retrieval operation.

Syntax

public int StartRowIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DataSourceSelectArguments.StartRowIndex 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.

As a separate operation, the data-bound control can request a subset of data from a data source control by setting the DataSourceSelectArguments.StartRowIndex and DataSourceSelectArguments.MaximumRows properties on the System.Web.UI.DataSourceSelectArguments object passed to the DataSourceView.Select(DataSourceSelectArguments, DataSourceViewSelectCallback) method.

Requirements

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