简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM