TemplateField.InitializeCell Metoda

Definicja

Dodaje tekst lub kontrolki do kolekcji kontrolek komórki.

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)

Parametry

cell
DataControlFieldCell

Obiekt DataControlFieldCell zawierający tekst lub kontrolki obiektu DataControlField.

cellType
DataControlCellType

DataControlCellType Jedna z wartości.

rowState
DataControlRowState

DataControlRowState Jedna z wartości określających stan wiersza zawierającego element DataControlFieldCell.

rowIndex
Int32

Indeks wiersza, w ramach którego DataControlFieldCell znajduje się element .

Uwagi

Wywołaj tę metodę podczas tworzenia niestandardowej kontrolki powiązanej z danymi, która używa DataControlFieldCell obiektów do inicjowania komórek struktury tabeli przy użyciu danych lub kontrolek.

Dotyczy

Zobacz też