Wpf lookup combobox trigger edit?

Wpf lookup combobox trigger edit?

Old forum URL: forums.lhotka.net/forums/t/5691.aspx


RickR posted on Wednesday, October 29, 2008

I see in this post the way to connect up a lookup combobox in Wpf:

http://www.lhotka.net/weblog/BindingAWPFComboBoxToADisplaySourceAndABindingSource.aspx

but it seems like this will cause the BusinessObjectList to go into edit state.

The senario might be like this:  Create UI, in load event create BusinessObjectList and associated lookup BusinessObjectList, connect like above.  When the combo box loads its ItemSource doesn't it change the SelectedValue in the BusinessObject and thereby edit it?

Regards,

Rick

RickR replied on Wednesday, October 29, 2008

Never mind, I see now that checking in the Set property if the value is different prevents this from happening.

 

Rick

Copyright (c) Marimer LLC