C# DataGridViewComboxCell的事件

C# DataGridViewComboxCell的事件,c#,.net,winforms,event-handling,datagridviewcombobox,C#,.net,Winforms,Event Handling,Datagridviewcombobox,我使用以下代码在winform的网格视图中绑定组合框列 DataGridViewComboBoxCell dgBatch = (DataGridViewComboBoxCell)grvProduct.Rows[pRowIndex].Cells[pComboColName]; DataTable dtBatch = new DataTable(); dtBatch = iExportSalesOrder.SelectProductDe

我使用以下代码在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";

如何获取此组合框列的selectedindexchange事件?

您可以尝试使用DataGridView.EditingControlShowing事件并将EventArgs强制转换为组合框控件,然后使用SelectedIndexchanged事件