Changing the value of combobox is actually an editing element related to the grid. Therefore, to trigger anything, you will need to add them to the EditingControlShowing Event for the DataGrid for this particular column
private void dg_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { if (dg.CurrentCell.ColumnIndex == 0) { ComboBox cmbox = e.Control as ComboBox; cmbox.SelectedValueChanged += new EventHandler(cmbox_SelectedValueChanged); } }
you can trigger an event with a changed cell value in a selected event with a modified salma Combobox
source share