在我在这里看到的一个岗位上:
<DataGrid ItemsSource="{Binding ClassAClassBCombinedList.DataclassInstance; public T Data { get; private set; }但这不管用是因为:
'CombinedClass‘不包含&
我在ComboBox中定义了一个DataGrid,如下所示。ItemsSource of ComboBox是包含Name和ID属性的自定义类CodePickList的列表。DisplayMemberPath是Name属性,SelectedValuePath是ID属性。SelectedValue绑定到DataGrid ItemsSource上的GLCode属性。(请注意,ItemsSource