GridView.CreateRow メソッド

定義

GridView コントロールに行を作成します。

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

パラメーター

rowIndex
Int32

作成する行のインデックス。

dataSourceIndex
Int32

行にバインドするデータ ソース項目のインデックス。

rowType
DataControlRowType

DataControlRowType値の 1 つ。

rowState
DataControlRowState

DataControlRowState値の 1 つ。

返品

指定したパラメーターを使用して作成された GridViewRow

注釈

CreateRow メソッドは、GridView コントロールに行を作成するために使用されます。

Note

このメソッドは、主にコントロール開発者が GridView コントロールを拡張するために使用されます。 データ バインド GridView コントロールは、ターゲット データを表示するために必要な行を自動的に生成します。

適用対象

こちらもご覧ください