- cell
- A System.Web.UI.WebControls.DataControlFieldCell that contains the text or controls of the System.Web.UI.WebControls.DataControlField.
- cellType
- One of the System.Web.UI.WebControls.DataControlCellType values.
- rowState
- One of the System.Web.UI.WebControls.DataControlRowState values, specifying the state of the row that contains the System.Web.UI.WebControls.DataControlFieldCell.
- rowIndex
- The index of the row that the System.Web.UI.WebControls.DataControlFieldCell is contained in.
Types derived from System.Web.UI.WebControls.DataControlField implement the DataControlField.InitializeCell(DataControlFieldCell, DataControlCellType, DataControlRowState, int) method to add text and controls to a System.Web.UI.WebControls.DataControlFieldCell object that belongs to a data control that uses tables to display a user interface (UI). These data controls create the complete table structure row by row when their respective CreateChildControls methods are called. The DataControlField.InitializeCell(DataControlFieldCell, DataControlCellType, DataControlRowState, int) method is called by the InitializeRow method of data controls such as System.Web.UI.WebControls.DetailsView and System.Web.UI.WebControls.GridView.
Call this method when you are writing a custom data-bound control that uses System.Web.UI.WebControls.DataControlFieldCell objects to initialize the cells of the table structure with data or controls. Implement this method when you are writing a class derived from System.Web.UI.WebControls.DataControlField.