如何从另一个线程修改绑定到DataGridView的class A {
public BindingList<int> BindingSource = new BindingList<int>();
// to be called from another thread
public void Update(int a) {
BindingSource.Add(a);
}
}
A a = new A();
DataGridView dgv = new DataGridView();
dgv.DataSource = a.BindingSource;
?
{{1}}