TemplateField.InitializeCell Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds text or controls to a cell's controls collection.
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)
- cell
- DataControlFieldCell
A DataControlFieldCell that contains the text or controls of the DataControlField.
- cellType
- DataControlCellType
One of the DataControlCellType values.
- rowState
- DataControlRowState
One of the DataControlRowState values, specifying the state of the row that contains the DataControlFieldCell.
- rowIndex
- Int32
The index of the row that the DataControlFieldCell is contained in.
Call this method when you are creating a custom data-bound control that uses DataControlFieldCell objects to initialize the cells of the table structure with data or controls.
Produkt | Versjoner |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: