且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WPF XAML - 将datagrid列绑定到外键(Dataset)

更新时间:2022-03-21 02:27:01

您的表具有牙医名称,您是有约束力的使用牙医

Your table have Dentist name and you are binding with Dentists

无论如何,尝试这样做;

Anyway, try this;

<ItemsControl ItemsSource="{Binding Path=DataContext.Dentist,
 RelativeSource={RelativeSource AncestorType={x:Type Window}}}">

And;

<TextBlock Text="{Binding Dentist_Name}"/>