473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Datagrid - Add new row as user requested

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.

Nov 19 '05 #1
1 1173
Can you give the link where one is add it when the first time a
datagrid is loaded? Thanks.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sara T. | last post by:
Can I add some data to data grid control on the fly by not connecting to database ? I mean I need to put data to data grid control on the memory, I need to use it ro manage page such as next and...
3
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be...
0
by: Gman997 | last post by:
Hi all, Here is my dilemma which I bet others have faced. I have a datagrid written in C# which based upon user criteria will display anywhere from 6 to 18 columns of numbers which will be...
7
by: DanB | last post by:
I want to asked the user if he is sure before deleting a row in a datagrid. I've created an event handler for the underlying table using the RowDeleting Event. If the user responds that he...
2
by: thebison | last post by:
Hi, As a relative newbie to SQL Server/ASP.NET I'm hoping someone here can help with my problem. I'm developing a timesheet application in ASP.NET C# using Visual Studio 2003 with a database...
1
by: Pablo | last post by:
Hi! I try to create a custom DataGrid and i need to retrive the SortExpression that i send when i click on the header of a column. Ok i know, i can handle the OnSortCommand event. But i don't...
3
by: keithsimpson3973 | last post by:
I am trying to find a way to do the following I need to make a report (or datagrid, not sure which would be better) that can be printed. The format of the report is as follows: The first column...
4
by: cpajoe2001 | last post by:
I am not sure if this is the proper place to put this thread but I have run into a road block. I am writing a web app that will create groups in Active Directory then add users to those groups. I...
1
by: chris3vic | last post by:
I have a dynamically created datagrid, populated from a dataset that is filled by a sql string triggered by a command button. The application itself allows a user to input a selection of criteria and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.