在用da.update()后,如何将与该da相关连的bindingsource所绑定的dgv中的数据更新.实验过bindingsource.resetbinding(false),无效.

解决方案 »

  1.   

    再重新绑定之前加下面代码即可
    dataGridView1.DataSource= null ;
    dataGridView1.Controls.Clear();
      

  2.   

    this.bindingSource1.DataSource = null;
                this.dataSet1.Clear();
                this.oleDbDataAdapter1.Fill(dataSet1);
                this.bindingSource1.DataSource = this.dataSet1.Tables[0];
      

  3.   

    问题是我装多个控制都绑定到了这个BINDINGSOURCE上,为了达到同步的效果,无法重新FILL这个dataset,有没有办法能让BINDINGSOURCE能重新从DATASET中读取数据呢?