Hi,
To write from a diffrent thread you have to use delegates: here is how you can achive your goal:
dataGridView1.Invoke((MethodInvoker)delegate
{
dataGridView1.DataSource = null;
dataGridView1.DataSource = myList.ToList();
});
I generaly set the datagridview to null before doing any kind of operation to be sure the dataGrid is repainted.
i tryed using dataGridView1.Refresh(), Repaint() ... nothing works.
the best method to refresh a dataGridView is to do as described earlier.
Hope it helps.
PS: you can use delegates in diffrents way, but this one is generaly the easiest/fastest.
By the way, Now that you have implemented delegates, you have to make sure the thread is terminated before the form is closed, otherwise you will have an exception.