gpt4 book ai didi

c# - 使用 DevExpress Master-Detail 网格,如何绑定(bind)到子网格中的 SelectedItem?

转载 作者:太空宇宙 更新时间:2023-11-03 13:07:11 24 4
gpt4 key购买 nike

注意:此条目属于“分享您的知识,问答风格”类型。我在下面回答我自己的问题。

不幸的是,在具有 Master-Detail 的 DevExpress 网格中,SelectedItem 在子网格上不起作用。

如何确定在子网格中选择了哪个项目?

最佳答案

This has been superseded :-

Please note that this approach is outdated starting with version 15.1, where the capability to bind selection of the master and detail grids was supported out of the box. Starting with that version, bind the CurrentItem/SelectedItem/SelectedItems properties directly as described at Master-detail grid - Add the capability to bind selection and navigation properties.

The following properties of the master-detail grid now support binding: SelectedItem, CurrentItem, SelectedItems. Specify the DataControlDetailDescriptor.ParentPath property or handle the DataControlDetailDescriptor.CustomGetParent event to enable the binding from the ViewModel to the grid.

关于c# - 使用 DevExpress Master-Detail 网格,如何绑定(bind)到子网格中的 SelectedItem?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30370322/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com