DataTable binding to datagridview in multiple threads
<p>I am using a backgroundworker thread to fill a datatable. Now what i want to do is, to bind the datatable to a datagridview so that if any inserts or deletes to the table made inside the backgroundworker thread automatically appear in the datagridview in the main ui thread. This is what i have tried. The following is executed during form load:</p>

<pre><code>dtFailures.DataSource = bSource;
bSource.DataSource = dt;
</code></pre>

<p>Then in the backgroundWorker_doWork thread:</p>

<p>dtFailures.Invoke(new DataGridViewDelegate(updateGridView));</p>

<pre><code>private void updateGridView()
{
    bSource.ResetBindings(true);
}
</code></pre>

<p>This method does not work. The gridview is blank all the time. Can anyone show an example of a different method?</p>
