C# DataGridView有ComboBox列,comboBox值改变所引发的事件

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#,C#)