解决DataGridView绑定了数据源无法更新保存当前行的问题
this.dataGridView.currentCell=null;//该行的作用是取消datagridview行的编辑状态
adapter.Update(userTable);
解决DataGridView绑定了数据源无法更新保存当前行的问题
this.dataGridView.currentCell=null;//该行的作用是取消datagridview行的编辑状态
adapter.Update(userTable);