Gridview Updates

2 posts, 0 answers
  1. Tom Harkness
    Tom Harkness avatar
    6 posts
    Member since:
    Oct 2009

    Posted 01 May 2013 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1157 posts

    Posted 06 May 2013 Link to this post

    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.
Back to Top