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

注意

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

適用対象

こちらもご覧ください