This documentation is archived and is not being maintained.

GridViewRow Constructor

Note: This constructor is new in the .NET Framework version 2.0.

Initializes a new instance of the GridViewRow class.

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

public GridViewRow (
	int rowIndex,
	int dataItemIndex,
	DataControlRowType rowType,
	DataControlRowState rowState
)
public GridViewRow (
	int rowIndex, 
	int dataItemIndex, 
	DataControlRowType rowType, 
	DataControlRowState rowState
)
public function GridViewRow (
	rowIndex : int, 
	dataItemIndex : int, 
	rowType : DataControlRowType, 
	rowState : DataControlRowState
)

Parameters

rowIndex

The index of the GridViewRow object in the Rows collection of a GridView control.

dataItemIndex

The index of the DataItem in the underlying DataSet.

rowType

One of the DataControlRowType enumeration values.

rowState

A bitwise combination of the DataControlRowState enumeration values.

Use this constructor to initialize a new instance of a GridViewRow object.

The following table shows initial property values for an instance of GridViewRow.

Property

Initial Value

DataItemIndex

The value of the dataItemIndex parameter.

RowIndex

The value of the rowIndex parameter.

RowState

The value of the rowState parameter.

RowType

The value of the rowType parameter.

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

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

.NET Framework

Supported in: 2.0
Show: