Add row to GridView or Table Temporary

R

r

Hi all
I Have a New button and Textbox that user can type a name and add it to
GridView but save it after clicking confirm.
How can I temporaray add this Textbox to GridView or Table and Save to Db at
the end.
Thanks in advance
 
Joined
Mar 4, 2009
Messages
17
Reaction score
0
FIRST of all use datatable. Load the datatable from db in page load event.
Then save the datatable into viewstate. Now under Add button click Add the item into saved datatable & rebind. Do until user click to save button. Now when user click save button Then stroe the datatable data into your dtabase.

For adding & subtracting item from datatable you can view the below post:
shawpnendu.blogspot.com/2009/03/transfer-records-from-one-gridview-to.html

REGARDS
shawpnendu.blogspot.com.
 

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,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top