ButtonField.InitializeCell Metoda

Definicja

Inicjuje określony DataControlFieldCell obiekt do określonego stanu wiersza.

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)

Parametry

cell
DataControlFieldCell

Element DataControlFieldCell do zainicjowania.

cellType
DataControlCellType

DataControlCellType Wartość wskazująca typ wiersza (nagłówek, stopka lub dane).

rowState
DataControlRowState

Jedna z DataControlRowState wartości.

rowIndex
Int32

Indeks oparty na zera wiersza.

Uwagi

Metoda InitializeCell tworzy typ przycisku określony przez ButtonType właściwość i dodaje go do Controls kolekcji DataControlFieldCell obiektu. Właściwość CommandArgument kontrolki Button jest ustawiona na rowIndex.

Dotyczy

Zobacz też