将你第一次用datagridview显示数据的几句代码复制粘贴到按钮事件中再执行一遍
[/Quote]
如楼上所述,我没写代码= =,form_load中的代码是这样的:
// TODO: This line of code loads data into the 'studentinfoDataSet.sinfo' table. You can move, or remove it, as needed.
this.sinfoTableAdapter.Fill(this.studentinfoDataSet.sinfo);
我把这段代码剪切到button_click中居然没用,上面注释不是说可以remove吗?另外:重新绑定的代码要怎么写呢?