Initializes the specified System.Web.UI.WebControls.DataControlFieldCell object with the specified cell type, row state, and row index.
- cell
- The System.Web.UI.WebControls.DataControlFieldCell to initialize.
- cellType
- One of the System.Web.UI.WebControls.DataControlCellType values.
- rowState
- One of the System.Web.UI.WebControls.DataControlRowState values.
- rowIndex
- The zero-based index of the row.
The ImageField.InitializeCell(DataControlFieldCell, DataControlCellType, DataControlRowState, int) method is implemented by System.Web.UI.WebControls.ImageField-derived types to add text and controls to a System.Web.UI.WebControls.DataControlFieldCell object of a data control that uses tables to display a user interface (UI). These data controls create the complete table structure row-by-row when the control's CreateChildControls method is called. The ImageField.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 an System.Web.UI.WebControls.ImageField-derived class.