Add new footer row on Button click

Posted by Oswaldlily under ASP.NET on 6/4/2013 | Points: 10 | Views : 1322 | Status : [Member] | Replies : 0
In my footer row of gridview last column i have "Add new row " linkbutton.

a)On clicking this new row, as that of first row of footer row have to be get added.

b)"Add new row " linkbutton have to be visible only in last row of gridview
I tried this following code..numcells is 20..
but it displaying oly odd column..(col1,col3,col5,col7...)..

GridViewRow footer = gv.FooterRow;
int numcells = footer.Cells.Count;
GridViewRow newrow = new GridViewRow(footer.RowIndex , -1, footer.RowType, footer.RowState);
for (int i = 0; i < numcells; i++)



(No response found.)

Login to post response