如何更新datagridview中的数据 在用da.update()后,如何将与该da相关连的bindingsource所绑定的dgv中的数据更新.实验过bindingsource.resetbinding(false),无效. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 再重新绑定之前加下面代码即可dataGridView1.DataSource= null ;dataGridView1.Controls.Clear(); this.bindingSource1.DataSource = null; this.dataSet1.Clear(); this.oleDbDataAdapter1.Fill(dataSet1); this.bindingSource1.DataSource = this.dataSet1.Tables[0]; 问题是我装多个控制都绑定到了这个BINDINGSOURCE上,为了达到同步的效果,无法重新FILL这个dataset,有没有办法能让BINDINGSOURCE能重新从DATASET中读取数据呢? 请教,如何用C#新建一个DWG文件。 c# 取数据库中特定的值 如何利用F1按钮调用指定的帮助文档,并进行定位!急!在线等! 控件缩放问题, 未将对象引用设置到对象的实例问题 哪个更高效?string.format,String.Format, 还是用 "" + "" 请问在.NET中怎么分析网页html文件啊? 怎么样获取XML节点的特性值? 文本框数据绑定的问题 高分求OLE DB .NET下的完整的数据库错误代码和相应的提示信息。 Spread 怎麽添加 Button 列!! 直接在DataGridView中新增一行时,如何使某些列的值等于上一行对应列的值
dataGridView1.DataSource= null ;
dataGridView1.Controls.Clear();
this.dataSet1.Clear();
this.oleDbDataAdapter1.Fill(dataSet1);
this.bindingSource1.DataSource = this.dataSet1.Tables[0];