Alex
Alex

Reputation: 2111

vb.net / DataGridView selection?

On my DataGridView one of the columns is set to a ComboBox. When I make a selection from this ComboBox the CellValue change Event is not triggered. What event is triggered when I do the selection?

Upvotes: 0

Views: 1038

Answers (1)

Jay Riggs
Jay Riggs

Reputation: 53593

It's not as easy as you might wish but with the sample shown here on MSDN, it's not that hard.

What you need to do is use your DataGridView's EditingControlShowing event to create a SelectedIndexChanged event for the ComboBox in your DGV. Your ComboBox's SelectedIndexChanged event will be fired when your ComboBox's SelectedIndex value changes.

Upvotes: 1

Related Questions