Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In one form using add button adding record in gridview it in database.
After click submit button add all rows from grid view in database using commit rollback.
Posted

You have to use Transactions for that.

See Transactions part in this link

Overview of Error Handling in SQL Server 2005[^]
 
Share this answer
 
v2
For a very simple tutorial on commit and rollback, see here[^].
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900