views:

107

answers:

3

Hi, I am able to bind the result of query to datagridview. i.e., SELECT * FROM employee where empid=@empid to datagridview in winform.

I need is a code that enables me to update the result of this query on the datagridview
& the update to be showed on employee table in my database using c#.

Thank you

A: 

Here are two good, easy to follow tutorials:

The first one is a simpler, more basic one: http://dotnetperls.com/datagridview-tutorial

dtmunir
+2  A: 

What you really need is to read a few tutorials on the subject... Try googling for something like "DataGridView update C#".

Here are two I found:

SwitchOntheCode.com
csharp-online.net

Cerebrus
+1 for suggesting 2 sites as well as saying "just google it"
Christian Payne
A: 

Here is a second, slightly more detailed one: http://www.codeproject.com/KB/grid/usingdatagrid.aspx

(sorry, my rep is too low to post them both in the same answer)

dtmunir
Thanks guys,It is realy great concept i learned from especially Switchonthecode.comThank you,
Dejene