Windows Forms controls' instance members are not safe for multithreading,
which means that you cannot access them directly from another thread. Make
sure you are using 'Control.Invoke'/'Control.BeginInvoke' together with
'Control.InvokeRequired' to access the datagrid from the thread. Some more
information about Windows Forms and multithreading can be found here:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.