CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35
  1. #31
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Refresh Database

    If the grid is active, you'd use RowVersion

    http://www.mssqltips.com/tip.asp?tip=1501
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  2. #32
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Refresh Database

    I looked at the link but I still do not see where this is of any use to the original question. If user a is viewing a grid that is currently displaying 100 records and User B inserts a record User A will not see the record that was added until User A refreshs the data and there is no indication if any record has been added prior to this action.

    I'll ask one more time how does a row lock for edit on a different machine magically refresh records on yet another machine or 499 machines?

  3. #33
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Refresh Database

    User B checks the ROWVERSION table to see WHICH records have been modified. It refreshes the table if changes are pending.

    Look at this site: http://www.devexpress.com/Products/N...WinForms/Grid/
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #34
    Join Date
    Jun 2009
    Posts
    10

    Re: Refresh Database

    Quote Originally Posted by dglienna View Post
    User B checks the ROWVERSION table to see WHICH records have been modified. It refreshes the table if changes are pending.

    Look at this site: http://www.devexpress.com/Products/N...WinForms/Grid/
    do u mean it refreshed without making any code?

    thx

  5. #35
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Refresh Database

    Yes. They right the code to only get values for the results that are VISIBLE on the screen (Server Mode)

    If your query returned 1000 records, and your grid showed 10 lines, it'd load in the time to query 10 records. Pretty cool controls.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Page 3 of 3 FirstFirst 123

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

Featured