Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL SQL-Server ADO.NET , +
Hi all,

Please help me in solving following query:

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

What I want is, when User makes changes in datagridview cells by editing the specific cell than 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..

is there any way to do this as i am beginner here ...thanks
Posted 18-Nov-12 4:40am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

As you're a beginner, trying to do real world tasks without learning to program first, probably being paid for it, the fact is that you're going to struggle with ever being a programmer, b/c you're too busy trying to finish your job, to ever actually learn. Certainly a copy/paste solution as you're seeking from this forum, does not help you long term. The site has TONS of articles on stuff like this, you should take the time to read some. Here is one.
 
Insert, Update, Delete in ASP.NET Gridview, DataSource as SQL Server, MS Access (mdb/accdb), XML and Framework as 2.0 / 3.0 / 3.5 / 4.0 (VS 2005/2008/2010)[^]
  Permalink  

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

  Print Answers RSS
0 Marcin Kozub 330
1 OriginalGriff 256
2 Sergey Alexandrovich Kryukov 215
3 Praneet Nadkar 197
4 Richard MacCutchan 182
0 OriginalGriff 8,048
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 18 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100