I have one button with following code
new Thread(() =>
{
DataTable table = Finish(txtTest.Text);
//dgwTest.DataSource = table
}).Start();
and I would like to set datagridview data source but I get an “cross thread” exception. Anyone know how can I avoid this?
string source = txtTest.Text;