TemplateField.InitializeCell Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Adiciona texto ou controles à coleção de controles de uma célula.
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
Um DataControlFieldCell que contém o texto ou controles do DataControlField.
- cellType
- DataControlCellType
Um dos DataControlCellType valores.
- rowState
- DataControlRowState
Um dos DataControlRowState valores, especificando o estado da linha que contém o DataControlFieldCell.
- rowIndex
- Int32
O índice da linha na qual a DataControlFieldCell linha está contida.
Comentários
Chame esse método quando você estiver criando um controle personalizado associado a dados que usa DataControlFieldCell objetos para inicializar as células da estrutura da tabela com dados ou controles.