ButtonField.InitializeCell(DataControlFieldCell, DataControlCellType, DataControlRowState, Int32) Método

Definição

Inicializa o objeto DataControlFieldCell especificado no estado de linha especificado.Initializes the specified DataControlFieldCell object to the specified row state.

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)

Parâmetros

cell
DataControlFieldCell

O DataControlFieldCell a ser inicializado.The DataControlFieldCell to initialize.

cellType
DataControlCellType

Um valor de DataControlCellType que indica o tipo de linha (cabeçalho, rodapé ou dados).A DataControlCellType value that indicates the type of row (header, footer, or data).

rowState
DataControlRowState

Um dos valores de DataControlRowState.One of the DataControlRowState values.

rowIndex
Int32

O índice com base em zero da linha.The zero-based index of the row.

Comentários

O InitializeCell método cria o tipo de botão que é especificado pela ButtonType propriedade e o adiciona à Controls coleção do DataControlFieldCell objeto.The InitializeCell method creates the button type that is specified by the ButtonType property and adds it to the Controls collection of the DataControlFieldCell object. A CommandArgument Propriedade do Button controle é definida como rowIndex .The CommandArgument property of the Button control is set to rowIndex.

Aplica-se a

Confira também