Creates a row in the System.Web.UI.WebControls.GridView control.
- rowIndex
- The index of the row to create.
- dataSourceIndex
- The index of the data source item to bind to the row.
- rowType
- One of the System.Web.UI.WebControls.DataControlRowType values.
- rowState
- One of the System.Web.UI.WebControls.DataControlRowState values.
A System.Web.UI.WebControls.GridViewRow created using the specified parameters.
The GridView.CreateRow(int, int, DataControlRowType, DataControlRowState) method is used to create a row in the System.Web.UI.WebControls.GridView control.
This method is used primarily by control developers to extend the System.Web.UI.WebControls.GridView control. A data-bound System.Web.UI.WebControls.GridView control automatically generates the rows needed to display the target data.