Below code will help you
GridViewRow rw = new GridViewRow(-1, -1, DataControlRowType.DataRow, DataControlRowState.Normal);
TableCell rowCell;
int colCount = GridView1.Columns.Count;
for (int i = 0; i < colCount; i++)
{
rowCell = new TableCell();
rowCell.Text = "celltext";
rw.Cells.Add(rowCell);
}
GridView1.Controls[0].Controls.Add(rw);