Initializes the specified System.Web.UI.WebControls.DataControlFieldCell object to the specified row state.
- cell
- The System.Web.UI.WebControls.DataControlFieldCell to initialize.
- cellType
- A System.Web.UI.WebControls.DataControlCellType value that indicates the type of row (header, footer, or data).
- rowState
- One of the System.Web.UI.WebControls.DataControlRowState values.
- rowIndex
- The zero-based index of the row.
The ButtonField.InitializeCell(DataControlFieldCell, DataControlCellType, DataControlRowState, int) method creates the button type that is specified by the ButtonFieldBase.ButtonType property and adds it to the System.Web.UI.Control.Controls collection of the System.Web.UI.WebControls.DataControlFieldCell object. The Button.CommandArgument property of the System.Web.UI.WebControls.Button control is set to rowIndex.