是否可以连续使用 IsSynchronizedWithCurrentItem="True" 属性 3 次?

Is it possible to use the IsSynchronizedWithCurrentItem="True" property 3 times in a row?

是否可以连续使用 IsSynchronizedWithCurrentItem="True" 属性 3 次,例如将 Combobox 和 Datagrid 绑定到 Master- 中数据集的两个 tables详细视图。然后将另一个 Datagrid 作为 Master-Detail 视图绑定到第一个 Detail(第一个 Detail 是第二个 Master)? 数据集的table个都是串联的

为了更好地理解这里是我的代码:

第一个主从:

<ComboBox Name="ComboBoxLieferant" ItemsSource="{Binding}" DisplayMemberPath="LFR_NAME"/>

<DataGrid IsReadOnly="True" ItemsSource="{Binding Path=FK_TBL_MATERIAL_TBL_LIEFERANTENSTAMM}" IsSynchronizedWithCurrentItem="True" AutoGenerateColumns="True" >

组合框绑定到 this.DataContext = DSHistory.TBL_LIEFERANTENSTAMM; (第一个table)

第二个 Master-Detail,新 Master 作为第一个 Detail:

<DataGrid Name="dg2" "ItemsSource="{Binding Path=FK_TBL_MATERIAL_TBL_LIEFERANTENSTAMM/FK_TBL_BESTELLUNG_TBL_MATERIAL}" AutoGenerateColumns="True" IsReadOnly="True" IsSynchronizedWithCurrentItem="True"> PathFK_TBL_MATERIAL_TBL_LIEFERANTENSTAMM/FK_TBL_BESTELLUNG_TBL_MATERIAL是第一、二、三的关系table

如您所见,我正在使用 IsSynchronizedWithCurrentItem="True" 3 次。

这是我的数据集:

但是没用。 有没有可能是我的绑定不正确? 感谢您的帮助!

我自己解决了这个问题。 我只是在另一个方向上添加了这些表之间的另一个关系。