Datagrid - Add new row as user requested

A

Andy

Hello,

I am building a form that allows user to enter multiple shipping
addresses. As the number of shipping address is unknown at design time
and different on each user. I used datagrid and column template to
populate my form. Each row in the datagrid will be one address which
contains asp control such as textbox, dropdownlist...As the page first
loaded (!IsPostBack) my datagrid bound to the first row. User can enter
info in this first row and click Add New Row button to add in the new
shipping address and continue to do that until done and submit the
form.

I am wondering if there is a way to add in a new blank row to the
current datagrid as user requested and still maintain all the data the
user has entered (from ViewState on postback)

I've seen many examples about adding a new row to datagrid but all of
them show you how to add it in just the first time the page loaded. I
would like to add in a blank row after the page is loaded and not
submitting the form until the user done.

Any help/tips appreciated.
Thanks.
 
N

needin4mation

Can you give the link where one is add it when the first time a
datagrid is loaded? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top