不触发DataGridView_EditingControlShowing [英] Does not Fire DataGridView_EditingControlShowing

查看:101
本文介绍了不触发DataGridView_EditingControlShowing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好....



我有一个datagridview,它有一个有3个项目的组合框。

现在得到哪个选择了项目(来自DataGridView组合框)我使用了EditingControlShowing事件。



工作正常,但是如果我在不编辑datagridview的情况下更改所选项目,那么

则不会触发EditingControlShowing事件。



有没有办法在不更改DataGridView组合框中的选定项目的情况下触发EditingControlShowing事件或其他事件。



谢谢

Hi Everyone....

I have a datagridview which has one comboboxcolumn which has 3 Items.
Now to get which Item is selected(from DataGridView comboboxcolumn ) I have used EditingControlShowing event .

It Works fine ,but if i change the selected item without editing the datagridview then
the EditingControlShowing event does not fire .

Is there any way to fire the EditingControlShowing event or another event without changing selected item in DataGridView comboboxcolumn.

Thanks

推荐答案

这是因为没有编辑人员真正展示你感兴趣的事件,非常合理。如果您需要处理这种情况,请处理事件 SelectionChanged http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged.aspx [ ^ ]。



-SA
This is because no editor is really showing on the event you are interested in, quite reasonably. If you need to handle this situation, handle the event SelectionChanged instead: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged.aspx[^].

—SA


这篇关于不触发DataGridView_EditingControlShowing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆