protected void GridView1_RowCreated(object sender,
GridViewRowEventArgs e)
{
var x = 0;
if (e.Row.RowType == DataControlRowType.Header)
{
x = 1;
TableCell cell = new TableCell();
cell.ColumnSpan = 2;
cell.Text = "I can do what ever i want with
datagrid!";
e.Row.Cells.Clear();
e.Row.Cells.Add(cell);
}
else if (e.Row.RowType == DataControlRowType.Footer)
{
x = 2;
}
else
{
x = 3;
}
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.