在一个Winform 中,有一个dataGrid,一个butApply 按钮,一个butOk按钮. 当我点击butApply 时,只显示在dataGrid中添加了新纪录,而不对数据库操作;而当我点击butOk时,才把记录写入数据库!!