Solved

GridView - how do I dynamically add a new row

Posted on 2012-04-02
1
336 Views
Last Modified: 2012-05-02
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
0
Comment
Question by:Lorna70
1 Comment
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 250 total points
ID: 37797827
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question