private void dgvView_EditingControlShowing(object sender,DataGridViewEditingControlShowingEventArgs e)
{
if(this.dgvView.CurrentCell.OwingColumn.Name == "Column15")
{
((ComboBox)e.Control).SelectedIndexChanged += new EventHandler(ComboBox_SelectedIndexChanged);
}
}
private void ComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
逻辑代码:comboBox值改变所引发的事件
dgvView.CurrentRow.Cells[1].Value
}
C# DataGridView有ComboBox列,comboBox值改变所引发的事件
最新推荐文章于 2024-04-01 16:51:14 发布