Language

ButtonField.InitializeCell メソッド

定義

指定した DataControlFieldCell オブジェクトを、指定した行の状態に初期化します。

public:
 override void InitializeCell(System::Web::UI::WebControls::DataControlFieldCell ^ cell, System::Web::UI::WebControls::DataControlCellType cellType, System::Web::UI::WebControls::DataControlRowState rowState, int rowIndex);
public override void InitializeCell(System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlCellType cellType, System.Web.UI.WebControls.DataControlRowState rowState, int rowIndex);
override this.InitializeCell : System.Web.UI.WebControls.DataControlFieldCell * System.Web.UI.WebControls.DataControlCellType * System.Web.UI.WebControls.DataControlRowState * int -> unit
Public Overrides Sub InitializeCell (cell As DataControlFieldCell, cellType As DataControlCellType, rowState As DataControlRowState, rowIndex As Integer)

パラメーター

cell
DataControlFieldCell

初期化する DataControlFieldCell 。

cellType
DataControlCellType

行の種類 (ヘッダー、フッター、またはデータ) を示す DataControlCellType 値。

rowState
DataControlRowState

DataControlRowState値の 1 つ。

rowIndex
Int32

行の 0 から始まるインデックス。

注釈

InitializeCell メソッドは、ButtonType プロパティで指定されたボタン型を作成し、Controls オブジェクトのDataControlFieldCell コレクションに追加します。 CommandArgument コントロールの Button プロパティは、rowIndexに設定されます。

適用対象

こちらもご覧ください