WPF DataGrid CellClick事件 [英] WPF DataGrid CellClick Event

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

问题描述



我想触发与WPF DataGrid中的Winform datagridview CellClick()事件等效的DataGrid cellclick事件.所以请帮助我知道这一点.
提前谢谢.

谢谢与问候
Monish K M

Hi,

i would like to trigger DataGrid cellclick event equivalent to Winform datagridview CellClick() event in WPF DataGrid.So please help me anybody to know that.
Thanks in advance.

Thanks & Regards
Monish K M

推荐答案

嗨.

尝试使用此样式作为您的DataGridCell样式

Hi.

Try to use this style as your DataGridCell style

<Style x:Key="Cell" TargetType="{x:Type my:DataGridCell}">
            <EventSetter Event="MouseDoubleClick" Handler="DataGridHeader_MouseDoubleClick"/>
</Style>


这篇关于WPF DataGrid CellClick事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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