语言

GridViewRow(Int32, Int32, DataControlRowType, DataControlRowState) 构造函数

定义

初始化 GridViewRow 类的新实例。

public:
 GridViewRow(int rowIndex, int dataItemIndex, System::Web::UI::WebControls::DataControlRowType rowType, System::Web::UI::WebControls::DataControlRowState rowState);
public GridViewRow(int rowIndex, int dataItemIndex, System.Web.UI.WebControls.DataControlRowType rowType, System.Web.UI.WebControls.DataControlRowState rowState);
new System.Web.UI.WebControls.GridViewRow : int * int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.GridViewRow
Public Sub New (rowIndex As Integer, dataItemIndex As Integer, rowType As DataControlRowType, rowState As DataControlRowState)

参数

rowIndex
Int32

控件集合GridViewRow中Rows对象的索引GridView。

dataItemIndex
Int32

基础DataItem中的索引DataSet。

rowType
DataControlRowType

枚举值之 DataControlRowType 一。

rowState
DataControlRowState

枚举值的按位组合 DataControlRowState 。

注解

使用此构造函数初始化对象的新实例 GridViewRow 。

下表显示了实例 GridViewRow的初始属性值。

财产 初始值
DataItemIndex 参数的值 dataItemIndex 。
RowIndex 参数的值 rowIndex 。
RowState 参数的值 rowState 。
RowType 参数的值 rowType 。

适用于

另请参阅