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.
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.