Hello :)
This is my scenario:
I have a gridview with a GridViewComboBoxColumn with the property isComboBoxEditable set to true and the ItemsSource property set to a List<T> (the data of this list is populated from a data base). The SelectedValueMemberPath set to a property of the T object and the DisplayMemberPath set to an another property of T. Everything works as expected.
I would like to know how can I do the following if possible:
The reason for the isComboBoxEditable is set to true is that I want the user to add new items to the GridViewComboBoxColumn, then I save this new item to the data base and then display the combobox with the new item. So how can I access the combobox and add the new item and then display the combobox list with the new item? I guess refreshing the combobox, refreshing the row, or refreshing the entire gridview could help because all the combobox in the rows created previously must have the new created item too.
I hope you can help me.
Best regards,
Jorge Alberto
This is my scenario:
I have a gridview with a GridViewComboBoxColumn with the property isComboBoxEditable set to true and the ItemsSource property set to a List<T> (the data of this list is populated from a data base). The SelectedValueMemberPath set to a property of the T object and the DisplayMemberPath set to an another property of T. Everything works as expected.
I would like to know how can I do the following if possible:
The reason for the isComboBoxEditable is set to true is that I want the user to add new items to the GridViewComboBoxColumn, then I save this new item to the data base and then display the combobox with the new item. So how can I access the combobox and add the new item and then display the combobox list with the new item? I guess refreshing the combobox, refreshing the row, or refreshing the entire gridview could help because all the combobox in the rows created previously must have the new created item too.
I hope you can help me.
Best regards,
Jorge Alberto