i have an asp.table where all the cells contains text and the following function to add buttons to the cells
Button btnactiv = new Button();
btnactiv.ID = y.ToString();
btnactiv.Text = "Dept " + dr_depts["code_dept"].ToString() + "(" + nbr + " )";
the buttons are added and it works fine but the text of cells gets deleted after i add the buttons how can i add butoons and keep the text please ?