Hello,
You can add TableCell by implementing the handler of a GridView RowDataBound event.
For example:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
TableCell newcell = new TableCell();
newcell.Text = "123";
e.Row.Cells.Add(newcell);
}
}
To access cells in specific columns use this example:
string Contract = DataBinder.Eval(e.Row.DataItem, "Contract").ToString();
Hope it helps.