DataGridView的CellValueChanged事件和CurrentCellChanged事件
我有两个问题:
1.CellValueChanged事件和CurrentCellChanged事件这两个事件有什么区别? 我想在修改某个单元格的时候触发事件,该选哪个?
2.为什么这两个事件在窗口打开的时候就触发了?
private void dataGridViewxIP_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
MessageBox.Show("hh");
}
对话框在窗口打开的时候就弹出来了,是什么原因??