WPF DataGrid行已更改

编程入门 行业动态 更新时间:2024-10-27 13:26:45
本文介绍了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 有关更多信息;) msdn.microsoft/en-us/library/system.windows.controls.datagrid.selectedcellschanged.aspx [ ^ ] I think you need to handle SelectedCellsChanged for more info ;) msdn.microsoft/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行已更改

本文发布于:2023-11-11 10:12:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578134.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:WPF   DataGrid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!