“BindingSource cannot be its own data source” - error when trying to reset the binding source from a method in another class
问题 We are binding a DataGridview using BindingSource . So in the main thread we have given like this. class1BindingSource = new BindingSource(); class1BindingSource.DataSource = class1List; this.dataGridView1.DataSource = class1BindingSource; After that i have a placed a background worker in the form and is triggering in a button click. i.e. in the button click this.backgroundWorker1.RunWorkerAsync() In the BackgroundWorker DoWork Event i am trying to update the BindingSource and there by trying