Results 1 to 3 of 3

Thread: connected with a database datagrid

  1. #1

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    connected with a database datagrid

    connecting from my previous posting.
    http://www.vbforums.com/showthread.php?t=644355

    how that data in the DataTable can be updated with current data ?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: connected with a database datagrid

    If your database has no indication of when data was saved then you have to simply discard everything and get everything again. If your database does record a timestamp when data is saved then you can simply query the database for all records with a timestamp later than the last time you retrieved data. You can populate a new DataTable and then Merge it into the existing DataTable.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    Re: connected with a database datagrid

    if you do not mind, can you give me example code, for my condition ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width