开发者

vb.net / DataGridView selection?

开发者 https://www.devze.com 2023-02-15 03:33 出处:网络
On my DataGridView one of the columns is set to a ComboBox. When I make a selection from this ComboBox the CellValue 开发者_StackOverflow社区change Event is not triggered. What event is triggered when

On my DataGridView one of the columns is set to a ComboBox. When I make a selection from this ComboBox the CellValue 开发者_StackOverflow社区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.

0

精彩评论

暂无评论...
验证码 换一张
取 消