DetailsView.CreateRow(Int32, DataControlRowType, DataControlRowState) メソッド

定義

指定した項目インデックス、行の種類、および行の状態を使用して、 DetailsViewRow オブジェクトを作成します。

protected:
 virtual System::Web::UI::WebControls::DetailsViewRow ^ CreateRow(int rowIndex, System::Web::UI::WebControls::DataControlRowType rowType, System::Web::UI::WebControls::DataControlRowState rowState);
protected virtual System.Web.UI.WebControls.DetailsViewRow CreateRow(int rowIndex, System.Web.UI.WebControls.DataControlRowType rowType, System.Web.UI.WebControls.DataControlRowState rowState);
abstract member CreateRow : int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.DetailsViewRow
override this.CreateRow : int * System.Web.UI.WebControls.DataControlRowType * System.Web.UI.WebControls.DataControlRowState -> System.Web.UI.WebControls.DetailsViewRow
Protected Overridable Function CreateRow (rowIndex As Integer, rowType As DataControlRowType, rowState As DataControlRowState) As DetailsViewRow

パラメーター

rowIndex
Int32

表示するデータ項目の 0 から始まるインデックス。

rowType
DataControlRowType

DataControlRowType値の 1 つ。

rowState
DataControlRowState

DataControlRowState値の 1 つ。

返品

指定した項目インデックス、行の種類、および行の状態を持つ DetailsViewRow

注釈

CreateRow メソッドは、DetailsViewRow オブジェクトを作成するためにDetailsView コントロールによって呼び出されるヘルパー メソッドです。

注意 (継承者)

DetailsView クラスを拡張するときに、このメソッドをオーバーライドして、カスタム設定でDetailsViewRow オブジェクトを返すことができます。

適用対象

こちらもご覧ください