This is a migrated thread and some comments may be shown as answers.

Gridview Updates

1 Answer 26 Views
This is a migrated thread and some comments may be shown as answers.
Tom Harkness
Top achievements
Rank 1
Tom Harkness asked on 01 May 2013, 05:20 PM
First of all let me apologize for what is probably a easy to answer question. I am unsure of what I need to do for the next step in getting the update to fire and get posted to the SQL DB. This is about the last thing I need to do to have this app finished. I have all the other code needed done. 

I have the radgridview1 already being filled by a dataset. How or rather what is the best way to get the updates posted to the db? I have done my app in C#. In this grid I am forcing the user to do a cell selection to make each change in the row.

Any help you could offer would be greatly appreciated. 

Tom

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 06 May 2013, 11:15 AM
Hello Tom,

Thank you for writing.

Please, read this MSDN article describing how to save Dataset Changes to a Database - you should call the Update method of a TableAdapter or data adapter. The adapter's Update method updates a single data table and executes the correct commands. The suitable place to do this is the Grid's ValueChanged Event.

I hope this is helpful. Do not hesitate to write back anytime you have further questions or need assistance.

All the best,
Peter
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Asked by
Tom Harkness
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or