dataGridView自动退出编辑状态

来源:互联网 发布:家装cad平面设计软件 编辑:程序博客网 时间:2024/05/17 21:42
处理一下CurrentCellDirtyStateChanged事件,当Cell值发生变化,立即提交改变
private void dataGridView1_CurrentCellDirtyStateChanged(object sender, EventArgs e)
        {
            dataGridView1.CommitEdit(DataGridViewDataErrorContexts.Commit);
        }
0 0