Link to home
Start Free TrialLog in
Avatar of Lorna70
Lorna70

asked on

GridView - how do I dynamically add a new row

Hi

I have some code where I'm navigating round the gridview and at certain points, I need to be able to add a row with sub-totals.  I think I'm nearly there as I know the code to create each new row but just don't know how to insert it into the GridView.  Please see attached code. I did this before when I had 'Table tbl = (rowEvent.Row.Parent as Table);' but I had the parameters 'GridViewRowEventArgs rowEvent' then which I don't have now.  If you look at my code, you'll see what I mean :-).
GridView.txt
ASKER CERTIFIED SOLUTION
Avatar of Manoj Patil
Manoj Patil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial