I have existing combo box in my program, it has adding some events, its list of element is changing in time. I have dataGridView with dataGridViewComboBoxColumn. Now I want to add my combo box to one cell in dataGridView. How can I make it? I try several examples, which I find in the Internet, but I doesn't work..
edit
I understand that it isn't possible. So, how can I add events to comboBox from dataGridViewComboBoxColumn?
edit 2
dataGridView.EditingControlShowing += dataGridView1_EditingControlShowing;
private void dataGridView1_EditingControlShowing (object sender, DataGridViewEditingControlShowingEventArgs e) {
if ( e.Control is ComboBox) {
((ComboBox)e).event = new Handler;
}
}
It seems to work good, but example I can't join this comboBox with some tag.