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: md110 **
hi
Thank you for your attention
All Right , Thse 3 Properties shouldn't be used together
Unused the SelectedMemberPath And SelectedItem in this sample
i forget Remove this tags from Xaml code
i am using SelectedValue And binding To Documentdata.PersonID and save PersonID value to Document Table
but only one item checked save.
i am understand use SelectedItemsOverride="{Binding SelectedItemPersons}" but i Do not know
how to use SelectedItemPersons in view model and save values to database
when
private void DoAddNew()
{
Documentdata = Documentdata ?? new Document();
Documentdata.Person = SelectedItemPersons ;
RaisePropertyChanged("Persondata");
RaisePropertyChanged("Documentdata");
}
in line 2 exeption error:
cannot convert type observablecollection to target type ............................
please edit my sample and help me to resolve this problem And submit
thank you