update database through datagrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rohith
    New Member
    • Feb 2006
    • 3

    update database through datagrid

    I m not able to update Database through DataGrid.I am working in VB.Net .I can retrieve the Data but could not update the data through datagrid.Please help me.

    [EMAIL REMOVED]
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by Rohith
    I m not able to update Database through DataGrid.I am working in VB.Net .I can retrieve the Data but could not update the data through datagrid.Please help me.

    sumithxp@gmail. com
    have u tried anything.....if yes,let us know.....
    you have to iterate through the grid in a loop and execute the updation....

    Comment

    • Rohith
      New Member
      • Feb 2006
      • 3

      #3
      Originally posted by dip_developer
      have u tried anything.....if yes,let us know.....
      you have to iterate through the grid in a loop and execute the updation....

      Yes I did as follows,
      Dim dtChanged As DataTable
      dtChanged = ds.Tables("ordr et_d").GetChang es()
      da.Update(dtCha nged)
      ds.Tables("ordr et_d").AcceptCh anges()

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Have you searched the site? This question has come up lots of times.

        Posting your email is against site rules. Thanks.

        MODERATOR

        Comment

        • vijayanstephen
          New Member
          • Aug 2007
          • 2

          #5
          hai

          i am vijayan.i have dovet that is how to send the email using protocol and with i want that coding also.plz help me.

          vijayan

          Comment

          Working...