Compartir por


ButtonField.InitializeCell Método

Definición

Inicializa el objeto especificado DataControlFieldCell en el estado de fila especificado.

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

que DataControlFieldCell se va a inicializar.

cellType
DataControlCellType

Valor DataControlCellType que indica el tipo de fila (encabezado, pie de página o datos).

rowState
DataControlRowState

Uno de los DataControlRowState valores.

rowIndex
Int32

Índice de base cero de la fila.

Comentarios

El InitializeCell método crea el tipo de botón especificado por la ButtonType propiedad y lo agrega a la Controls colección del DataControlFieldCell objeto . La CommandArgument propiedad del Button control se establece en rowIndex.

Se aplica a

Consulte también