I am very sorry. Please accept my humble apologies, as I misread your post.
Might I suggest to loop through all of the cells on the RowDataBound event of the GridView for each row, and append a Button control into the cell. You will also need to take the text of the Cell and store it in a label so it is not replaced by the button. This code worked for me:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
Button b;
Label l;
if (e.Row.RowType == DataControlRowType.DataRow)
{
foreach (TableCell tc in e.Row.Cells)
{
l = new Label();
l.Text = tc.Text;
b = new Button();
b.Text = "Button Text";
tc.Controls.Add(l);
tc.Controls.Add(b);
}
}
}
Please let me know what else I can do for you.
Regards,
~ mellamokb