0

I am using the following code for binding a combo box column in a grid view in my winform

DataGridViewComboBoxCell dgBatch = (DataGridViewComboBoxCell)grvProduct.Rows[pRowIndex].Cells[pComboColName];
                DataTable dtBatch = new DataTable();
                dtBatch = iExportSalesOrder.SelectProductDetails(pack_detl_ID);
                dgBatch.DataSource = dtBatch;
                dgBatch.ValueMember = "qty";
                dgBatch.DisplayMember = "sBatch_No";

How can i get the selectedindexchange event of this combo box column?

NeverHopeless
  • 11,077
  • 4
  • 35
  • 56
Nithesh Narayanan
  • 11,481
  • 34
  • 98
  • 138

1 Answers1

0

You could try using the DataGridView.EditingControlShowing event and casting the EventArgs to a ComboBox control and then you can use the SelectesIndexChanged event.

tim franklin
  • 106
  • 1