Bahasa

TemplateField.InitializeCell Metode

Definisi

Menambahkan teks atau kontrol ke koleksi kontrol sel.

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)

Parameter

cell
DataControlFieldCell

DataControlFieldCell yang berisi teks atau kontrol DataControlField.

cellType
DataControlCellType

Salah DataControlCellType satu nilai.

rowState
DataControlRowState

Salah DataControlRowState satu nilai, menentukan status baris yang berisi DataControlFieldCell.

rowIndex
Int32

Indeks baris tempat DataControlFieldCell baris dimuat.

Keterangan

Panggil metode ini saat Anda membuat kontrol terikat data kustom yang menggunakan DataControlFieldCell objek untuk menginisialisasi sel struktur tabel dengan data atau kontrol.

Berlaku untuk

Lihat juga