Add new cell in htmltable control
-
i have a web page that displays data from dataset in HtmlTable i add linkbutton in specific cell i want whaen i click this linkbutton add new table cell in the specific cell i hope my question clear thanks for help
MD_NADA
-
i have a web page that displays data from dataset in HtmlTable i add linkbutton in specific cell i want whaen i click this linkbutton add new table cell in the specific cell i hope my question clear thanks for help
MD_NADA
-
i have a web page that displays data from dataset in HtmlTable i add linkbutton in specific cell i want whaen i click this linkbutton add new table cell in the specific cell i hope my question clear thanks for help
MD_NADA
-
If you create the table like this:
<asp:Table ID="MyTable" runat="server"></asp:Table>
then you can add rows and/or cells like this:
TableRow tr = new TableRow();
TableCell td = new TableCell();tr.Controls.Add(td);
MyTable.Controls.Add(tr);Tara
this is right thank you but if i did this code the row will be the last row i want to add the new row after the current row if i am clicking in rowindex 2 the new row will be rowindex 3 thanks
MD_NADA
-
this is right thank you but if i did this code the row will be the last row i want to add the new row after the current row if i am clicking in rowindex 2 the new row will be rowindex 3 thanks
MD_NADA