Click here to Skip to main content
14,872,753 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Datagridview and bind it to my table
when i add new row or remove ,changes remain in datagrid.
but when i close form changes not save in table.
how can save this changes?
Posted
Comments
[no name] 5-Aug-12 23:17pm
   
Have you ever tried AcceptChanges() method?

1 solution

Hi,
You should read Sending a DataTable to a Stored Procedure[^] article. This is in web application but the part of the application "Sending datatable to stored procedure" will help you..


-Amit
   

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