GridViewRow.GridViewRow Constructor

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
)
Not applicable.

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 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: