CommunityToolkit DataGrid DataGridComboBoxColumn Value - Display Member Issue #4566
Unanswered
esobrino
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Given a ContentList that has:
Description
IdentifierId
... (other properties not needed here)
The DataGrid ItemsSource bounded class we have:
ContentIdentifierId
... (other properties not needed here)
<tk:DataGridComboBoxColumn ItemsSource="{x:Bind ContentList, Mode=OneWay}"
Header="Topic" DisplayMemberPath="Description"
Binding="{Binding ContentIdentifierId}" />
It looks like the only way to make this work is that the ContentList items and the Grid's ItemsSource have a property with the same name. What are the alternatives when they don't. I had work with other data-grids in WPF and there is always a way to setup what is sometimes called "ValueMemberPath", I spend time looking for answers without success.
Can someone provide some alternatives to solve this issue? help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions