如何清除DataGrid里面的记录? 因为DataGrid需要绑定DataSet,所以就可以把DataSet清空再绑定就行了 方法如下: DataSet.Clear(); DataGrid1.DataBind(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 dataset.reset()恢复到未更新前的状态 DataGrid实际上绑定的是DataView,也就是修改DataView的数据就行了,不过你可以设置DataGrid.DataSource = null; DataSet ds=null;DataGrid.DataSource=ds DataGrid.DataSource = null;DataGrid.DataBind(); 用DataGrid.DataSource = null;我的问题就觉得了,不过没有DataBind()方法,这是个什么方法?能解释一下吗? 请教... 指定某个方法运行的线程 WPF的一个小疑惑 请问一个关于C# WINFORM连接ORACL的问题·! (狂散100)给回贴人的一点意见~~各位``~` 用dataSet筛选数据库记录的问题 请高手帮我看一个小错误! checked的意义是什么? DataGrid数据显示问题 怎样从文本文件中一个一个的读入字符? win8应用开发中,实现共享的原理 C1FlexGrid打印问题? C# 里面的string,char[]如何转成C的类型??????
dataset.reset()恢复到未更新前的状态
不过你可以设置
DataGrid.DataSource = null;
DataGrid.DataSource=ds
DataGrid.DataBind();