The DisplayMemberPath is not set after first ItemsSource is set #4436
-
I am using a DataGridComboBoxColumn for cell editing. I'm seeing an issue where the DisplayMemberPath does not get set, leaving the cell appearing blank, after the first time the DataGridComboBoxColumn ItemsSource is called, yet the combo box is populated when the cell is in edit mode. // In my XAML, I have reference to controls // In DataGrid I have the DataGridComboBoxColumn control // Code behind // Collection // Fill the collection // Load the DataGrid // I have experienced issues where DataGrid does not update unless first set to null before loading // Set the DataGridComboBoxColumn ItemsSource. The DisplayMemberPath value is displayed when this is called the first time var comboBoxColumn = VzDataGrid.Columns.FirstOrDefault(x => x.Tag?.Equals("VzCategory") == true) as DataGridComboBoxColumn; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Issue resolved. The binding value was set on the first time the combo was loaded, but zero for new rows. |
Beta Was this translation helpful? Give feedback.
Issue resolved. The binding value was set on the first time the combo was loaded, but zero for new rows.