Hi,
I have a GridView with a GridViewComboBoxColumn that has a list of strings as the datasource and is bound to a string property in my ViewModel. Is it possible to let the user add new values to the string-list by typing in the GridViewComboBoxColumn editor and not reject those values when they are not already in the list?
At the moment, when I type a string that is not already in the bound list, the string is saved in the editor (when I enter the cell again after leaving it, the value is still there) but not propagated through the ValueChanging event and also not written to the underlying ViewModel.
I'm looking for a way to either
Is there a way to do this?
Thanks in advance.
I have a GridView with a GridViewComboBoxColumn that has a list of strings as the datasource and is bound to a string property in my ViewModel. Is it possible to let the user add new values to the string-list by typing in the GridViewComboBoxColumn editor and not reject those values when they are not already in the list?
At the moment, when I type a string that is not already in the bound list, the string is saved in the editor (when I enter the cell again after leaving it, the value is still there) but not propagated through the ValueChanging event and also not written to the underlying ViewModel.
I'm looking for a way to either
- Add the new value directly to the string-list and to the ViewModel's property
- Get notified about the change with the new, not-in-list value and be able to put it in the string-list manually
Is there a way to do this?
Thanks in advance.