Click here to Skip to main content
15,898,760 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all,

Please help me in solving following query:

I want to update table at backend in mssql database when making changes in datagridview cells current data.

What I want is, when User makes changes in datagridview cells by editing the changes which are made should get reflect in table in database.

For ex:

I am having "Datagridview" on WinForm and table "EmpDetails" at backend in databse. I am filling "Datagridview" with table "EmpDetails". When user click a cell and After making changes in "Datagridview cell" whatever changes made in datagridview should get reflect at backend in table "EmpDetails". Are there any easiest way to do these or do i have to write a method and execute it in grid view cell end edit event?
Posted

1 solution

u should have a method for updating the values in database. I suggest you to google it and choose the solution that suits you.
Also refer Here[^]
 
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