ButtonField.InitializeCell Metódus

Definíció

Inicializálja a megadott DataControlFieldCell objektumot a megadott sorállapotba.

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)

Paraméterek

cell
DataControlFieldCell

Az DataControlFieldCell inicializálandó.

cellType
DataControlCellType

A DataControlCellType sor típusát (élőfej, élőláb vagy adat) jelző érték.

rowState
DataControlRowState

Az egyik DataControlRowState érték.

rowIndex
Int32

A sor nulla alapú indexe.

Megjegyzések

A InitializeCell metódus létrehozza a tulajdonság által ButtonType megadott gombtípust, és hozzáadja az ControlsDataControlFieldCell objektum gyűjteményéhez. A CommandArgument vezérlő tulajdonsága a Button következőre rowIndexvan állítva: .

A következőre érvényes:

Lásd még