ButtonField.InitializeCell Metod

Definition

Initierar det angivna DataControlFieldCell objektet till det angivna radtillståndet.

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)

Parametrar

cellType
DataControlCellType

Ett DataControlCellType värde som anger typen av rad (sidhuvud, sidfot eller data).

rowState
DataControlRowState

Ett av DataControlRowState värdena.

rowIndex
Int32

Radens nollbaserade index.

Kommentarer

Metoden InitializeCell skapar den knapptyp som anges av ButtonType egenskapen och lägger till den i Controls objektets DataControlFieldCell samling. Kontrollens CommandArgument egenskap är inställd på ButtonrowIndex.

Gäller för

Se även