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

定义

初始化 DetailsViewRow 类的新实例。Initializes a new instance of the DetailsViewRow class.

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

参数

rowIndex
Int32

Rows 控件的 DetailsView 集合中行的索引。The index of the row in the Rows collection of the DetailsView control.

rowType
DataControlRowType

DataControlRowType 枚举值之一。One of the DataControlRowType enumeration values.

rowState
DataControlRowState

DataControlRowState 枚举值之一。One of the DataControlRowState enumeration values.

注解

使用此构造函数初始化类的新实例 DetailsViewRowUse this constructor to initialize a new instance of the DetailsViewRow class.

下表显示了 DetailsViewRow 类的某个实例的初始属性值。The following table shows initial property values for an instance of the DetailsViewRow class.

propertiesProperty 初始值Initial value
RowIndex 由参数指定的值 itemIndexThe value specified by the itemIndex parameter.
RowType 由参数指定的值 rowTypeThe value specified by the rowType parameter.
RowState 由参数指定的值 rowStateThe value specified by the rowState parameter.

适用于

另请参阅