V1 changes to DataGridComboBoxColumn

Nov 5, 2008 at 12:47 AM
Hi, I've just upgraded to V1. I notice that the following line of code will now not compile:-

DataFieldTarget = ComboBoxDataFieldTarget.SelectedValue

What should be used instead to sync up with the selected value?

Coordinator
Nov 5, 2008 at 2:58 AM
Use SelectedValueBinding of DataGridComboBoxColumn (without setting SelectedItemBinding or TextBinding properties).

The combination of DisplayMemberBinding and DataFieldTarget has been replaced SelectedItemBinding, SelectedValueBinding and TextBinding, to be more in sync with original ComboBox control.
Coordinator
Nov 5, 2008 at 1:15 PM
You can also read more about it here, http://blogs.msdn.com/vinsibal/archive/2008/10/31/wpf-datagrid-datagridcomboboxcolumn-v1-intro.aspx.