// pseudocode Thread startSql=new Thread(new ThreadStart(RunSql)); public void RunSql() { DataGridView1.datasource=Connection.runselect(sqlStatment); } //where runselect return table
datagridview
Invoke(new MethodInvoker(delegate { DataGridView1.datasource=Connection.runselect(sqlStatment); }));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)