Results 1 to 22 of 22

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

Threaded View

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

    Re: Backgroundworker - Can not get datagrid to update

    Isn't "D" a string array? If so, then just add the array without trying to specify the elements:


    vb.net Code:
    1. Me.MainGrid.Rows.Add(D)


    Edit: Just now noticed you initialized with 20 elements. Are they all needed?

    Edit...Again: Where are you initializing the ReceivedLine variable that is used here:

    vb.net Code:
    1. BackgroundWorker1.ReportProgress(1, ReceivedLine)

    I only see it declared in your ProgressChanged event, which is outside the scope of the DoWork event.
    Last edited by circuits2; Apr 24th, 2013 at 07:57 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