Results 1 to 22 of 22

Thread: [RESOLVED] Backgroundworker - Can not get datagrid to update

Threaded View

  1. #9
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: Backgroundworker - Can not get datagrid to update

    Variables that are declared in the ProgressChanged event are declared in the UI thread. You need to declare it in the DoWork event as well, otherwise the data is never fully passed.

    Edit: Sorry, in your case it needs to be declared in DoChat()
    Last edited by circuits2; Apr 24th, 2013 at 08:41 PM.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

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