Hi
I am using the following piece of code to add in a row dynamically on the rowdatabound event, but I have two problems, which I am desparate need of solving:
Adding a row dynamically just after the last row has been bound to the gridview - how do you this?I need to add two rows dynamically one after the other. Unfortunately, when I try to do this, I am just seeing one row, and my data is effectively merged into one. If my assumption is correct, I think the problem may have something to do with row indexes, where dynamic rows inherit the row index of the row you are on. How do I get round this?Can someone please help me, because I have been banging my head on this for days!! I really do need an answer!!
if (tbl != null)
{
GridViewRow row = new GridViewRow(-1, -1, DataControlRowType.DataRow, DataControlRowState.Normal);
rowValue.ID = "hdnNumRows";
rowValue.Value = counter; ...
Go to the complete details ...