Adding rows to GridView

J

Jeff

Hi

..NET 3.5

In my webpage I have GridView which add stuff to. Beside the GridView there
is a textbox and a button. If button is clicked I want the text in the
textbox to be inserted into the GridView.

So I look for ways to add rows to a GridView which are not yet saved to the
database. All the unsaved rows in the GridView should be saved only when
user clicks on Save later - the logic is that then a record in a table is
created (TABLE_A). And all the words entered in the GridView should saved to
another table (TABLE_B) which have foreign key to TABLE_A... So hence I
cannot add the rows to the database and just to a databind for each time..
because no TABLE_A record is created yet.

any suggestions?
 
J

Jeff

Jeff said:
Hi

.NET 3.5

In my webpage I have GridView which add stuff to. Beside the GridView
there is a textbox and a button. If button is clicked I want the text in
the textbox to be inserted into the GridView.

So I look for ways to add rows to a GridView which are not yet saved to
the database. All the unsaved rows in the GridView should be saved only
when user clicks on Save later - the logic is that then a record in a
table is created (TABLE_A). And all the words entered in the GridView
should saved to another table (TABLE_B) which have foreign key to
TABLE_A... So hence I cannot add the rows to the database and just to a
databind for each time.. because no TABLE_A record is created yet.

any suggestions?
 

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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top