Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

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

public int StartRowIndex { get; set; }
/** @property */
public int get_StartRowIndex ()

/** @property */
public void set_StartRowIndex (int value)

public function get StartRowIndex () : int

public function set StartRowIndex (value : int)

Not applicable.

Property Value

The starting row position from which a data source control retrieves data. The default value is 0, which indicates that the starting position is the beginning of the result set.

The StartRowIndex property supports paging scenarios. Data-bound controls check a data source view's CanPage property at run time, and add a DataSourceCapabilities.Page capability using the AddSupportedCapabilities method if the view supports paging. If the data-bound control fails to add the capability, and the paging properties are set on a 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 StartRowIndex and MaximumRows properties on the DataSourceSelectArguments object passed to the DataSourceView.Select method.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft