Is it possible to edit the contents present in DataGrid..?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • premMS143
    New Member
    • Nov 2008
    • 75

    Is it possible to edit the contents present in DataGrid..?

    Hi everybody,
    How to make changes/updates to the data present in the data grid..?

    I've connected DataGrid to a mdb table.
    Now I want it to be accept changes made to the existing data to be saved.
    Just like adding, deleting, sorting, editing the datagrid.


    Thanks in advance.
  • jg007
    Contributor
    • Mar 2008
    • 283

    #2
    it is pretty easy to do this and there are plent of examples from google but the basic idea is ( IIRC :)

    create a data adaptor
    use the command builder on the data adaptor
    call the data adaptor ' .update ' method passing it the datagrid with the updated data

    Comment

    • premMS143
      New Member
      • Nov 2008
      • 75

      #3
      Originally posted by jg007
      it is pretty easy to do this and there are plent of examples from google but the basic idea is ( IIRC :)

      create a data adaptor
      use the command builder on the data adaptor
      call the data adaptor ' .update ' method passing it the datagrid with the updated data
      Could you explain in detail please with Code..
      Because I'm newer to VB.
      Please don;'t mind..

      Comment

      • jg007
        Contributor
        • Mar 2008
        • 283

        #4
        sorry, I don't want to spoon feed you the answer but have a look at this link and see if you can work it out .

        if you have problems please post the code and any error messages in full that you get with an explanation of how your database is layed out

        Calls the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified DataSet from a DataTable named "Table."

        Comment

        Working...