为什么propertygridcontrol单击事件不触发其中的控件(其中的可编辑字段)? [英] Why propertygridcontrol click events not firing for controls in it (editable field in it ) ?

查看:733
本文介绍了为什么propertygridcontrol单击事件不触发其中的控件(其中的可编辑字段)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个propertyGridControl,其左侧不可编辑,就像它们前面的文本字段的明智标签一样,右侧有明智的文本控制权当我点击网格的不可编辑的部分点击事件被触发但同样的事件无法触发右侧可编辑控件(TextBox,DropDown)等时,


/>


但是我的要求是我想要同样的事件应该是两个人的火吗?



我怎样才能实现这个目标?



您的回复将非常感谢..



谢谢

Bhushan



我尝试了什么:



我试过点击事件我有隐藏屏幕上消息的功能。

Hi,

I have one propertyGridControl in which left side is non editable like wise labels of text fields ahead of them and right side is having control like wise text box , drop down etc.
when i click on non editable part click event of grid is getting fired but same event is not able to fire for right side editable control (TextBox,DropDown ) etc.

But my requirement is I want same event should be fire for both ?

How can i achieve this ?

your response will highly appreciate..

Thanks
Bhushan

What I have tried:

I have tried click event in which i have function which hide the message on screen .

推荐答案

你应该阅读 PropertyGrid [<小时ef =https://msdn.microsoft.com/en-us/library/system.windows.forms.propertygrid(v=vs.110).aspx\"target =_ blanktitle =New Window> ^ ] class ...

'click'事件不是行(属性)的偶数,而是控件本身。 id不会触发值侧的原因是,那里有另一个控件,它获得焦点并处理事件,而在文本端则是控件本身...

。如果你想追随通过PropertyGrid的性质的变化,你应该遵循的 PropertyValueChanged [ ^ ]事件......
You should read the documentation of PropertyGrid[^] class...
'click' event is not an even of the line (property) but the control itself. The reason id does not fire for the value-side, is that there is an other control there, that gets the focus and handles the event, while at the text-side it is the control itself...
If you want to follow changes of properties via PropertyGrid you should follow the PropertyValueChanged[^] event...


这篇关于为什么propertygridcontrol单击事件不触发其中的控件(其中的可编辑字段)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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