Hello,
I have a "add new record" row. The first two columns of the grid are comboBoxes, and are bound to a list, for example:
myField.Settings.EditorType = typeof(XamComboEditor)
var style = new Style(typeof(XamComboEditor));
style.Setters.Add(new Setter(XamComboEditor.ItemsSource, dataContext.MyValues));
myField.Settings.EditorStyle = style;
I want the comboBox items in the second field to change depending on the value selected in the first field when editing the new record row. I update the datasource correctly in the EditModeEnding event handler, but the second field's comboBox is not updated unless I reset the style (recreate the style from scratch). But, when I do that, the value selected in the first comboBox is cleared?
What am I doing wrong?
Meanwhile, please make sure the ItemSources (dataContext.MyValues) are ObservableCollection, otherwise the control won't auto-refresh when the collection change.
Thanks
Aldrick
Hi, Torque
Could you try "EditModeEnded" event instead of "EditModeEnding"?
Any info on this?
bump again
bump