Hi,
In my form one datagridview control is there,insert button When we click on insert a new row is added to the datagidview.If we enter values in that new row and click on save button ,the newly inserted row is updated to database.To get this what code i have to write in save button click.
Please help me.
Thanks in advance
Loading
Mahesh ChandPosted May 27, 2006, 2:20 PM
There are two way you can do this.
1. Execute a SQL query by taking data from your UI
2. Use DataSet.Update method
To see samples on both of these, see ADO.NET section of this site. There are many samples on database update using DataSet and query.