hi
this is my sample
when checked multiple item in CheckComboBox
but only one checked item CheckComboBox save to database
how to save All checked items CheckComboBox to database?
thanks
Comments: ** Comment from web user: BoucherS **
this is my sample
when checked multiple item in CheckComboBox
but only one checked item CheckComboBox save to database
how to save All checked items CheckComboBox to database?
thanks
Comments: ** Comment from web user: BoucherS **
Hi,
SelectedItemPersons is a ObservableCollection<Person> while Documentdata.Person is a Person, so the conversion can't be done. This is the reason of the exception.
Can Documentdata.Person be changed for Documentdata.Persons, a ObservableCollection<Person> ? If Yes, removing
```
SelectedValue="{Binding Documentdata.PersonID,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
```
and using
```
SelectedItemsOverride="{Binding SelectedItemPersons}"
```
should do it.
If not, Documentdata.Person can only set 1 Person. So you won't be able to save more than 1 Person.