开发者

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 开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜