从另一个线程更新BindingList

时间:2016-03-23 20:58:14

标签: c# multithreading synchronization

如何从另一个线程修改绑定到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}}

0 个答案:

没有答案