Private Sub model_QueryCellInfo(ByVal sender As Object, ByVal e As GridQueryCellInfoEventArgs) If Me.GridDataBoundGrid1.InvokeRequired Then MessageBox.Show("Wrong Thread") End If End Sub
grid.DataSource = new DataView(dt);to be sure the CurrencyManager would be set on this UI thread. That seemed to fix this problem with our GridDataBoundGrid in your sample. It did not completely fix the problem in the DataGrid. The program gets further with the DataGrid, but locks up when it starts to draw. Our grid has special code to make sure the drawing gets done on the proper thread. The DataGrid does not have this code.