如何更新DataGridViewComboBoxCell值不离开单元格或按enter键?c#

本文关键字:单元格 enter 离开 不离 何更新 更新 DataGridViewComboBoxCell | 更新日期: 2023-09-27 18:01:53

基本上问题是,我有一个comboBox里面的DataGrid,当我改变信息里面的comboBox我必须点击在其他单元格运行一个事件,我怎么能立即运行事件当我改变comboBox的值。

public void DataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
   //My Code Here
}

如何更新DataGridViewComboBoxCell值不离开单元格或按enter键?c#

我认为cellvaluechanged事件仅在您选择另一个单元格时触发。您是否尝试在组合框上使用选定的交换项?