Partager via


ButtonField.InitializeCell Méthode

Définition

Initialise l’objet spécifié DataControlFieldCell à l’état de ligne spécifié.

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ètres

cellType
DataControlCellType

Valeur DataControlCellType qui indique le type de ligne (en-tête, pied de page ou données).

rowState
DataControlRowState

Une des DataControlRowState valeurs.

rowIndex
Int32

Index de base zéro de la ligne.

Remarques

La InitializeCell méthode crée le type de bouton spécifié par la ButtonType propriété et l’ajoute à la Controls collection de l’objet DataControlFieldCell . La CommandArgument propriété du Button contrôle est définie sur rowIndex.

S’applique à

Voir aussi