Exposing Many-To-Many Relationship as Listbox with Checkboxes
WCF and WF
1
Posts
1
Posters
0
Views
1
Watching
-
I am trying to expose a many to many relationship in my GUI using a listbox. My DataModel consists of Linq To SQL generated classes, so I have three objects to deal with; one for each side of the many to many and one for the intersection table. My listbox's itemssource is bound to one side of the relationship (so that I show ALL items in that table). My listbox items are using a datatemplate containing a checkbox and a textblock. The textblock is bound to the name of the property. How can I bind the checkbox's IsChecked property so that items that exist in the intersection table cause it to be checked?