WPF DataGrid行已更改 [英] WPF DataGrid Row Changed

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

问题描述



我正在研究WPF Datagrid主从概念.
当主数据网格的焦点行或当前行发生更改时,我停留在一个地方,我想刷新详细数据网格.
有人可以告诉我应该将wpf datagrid的哪个事件用于此目的吗?


预先感谢,
Sunil

Hi,

I am working on WPF Datagrid master-detail concept.
i have stuck at one place, when the focused or current row of master datagrid changed i want to refresh the detail datagrid.
Can somebody tell me which event of wpf datagrid should be used for this purpose ?.


Thanks in advance,
Sunil

推荐答案

我认为您需要处理SelectedCellsChanged

有关更多信息;)
http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.selectedcellschanged.aspx [ ^ ]
I think you need to handle SelectedCellsChanged

for more info ;)
http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.selectedcellschanged.aspx[^]


感谢xmen ..
基本上,我想编写逻辑来读取Ilist,即在触发此事件时读取Ilist.但是在这种情况下,我没有得到这种方法/属性.我可以获得对我没有用的方法AddedCells [0]方法.请让我知道您是否知道其他任何可以解决我问题的事件.
提前谢谢.
苏尼尔(Sunil)
Thanks xmen..
Basically i want to write the logic to read the Ilist i.e Addeditem[0] when this event is fired. But i am not getting this method/property in this event. I can get the method AddedCells[0] method which is not useful for me. Please let me know do you know anyother event which will solved my problem.
Thanks in advance.
Sunil


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

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