I have a list of multi-images with binding to binding to binding to datatable. When I select listboxitem, I want some other list items in the same list to be selected automatically. I want several items to be selected with one click. How can i do this? I cannot do this in the SelectionChanged event, because it fires the same event again and completely destroys my logic.
Please, help. Any help would be greatly appreciated.
UPDATE:
My list is already bound to a datatable that has an IsSelected column. I use the value of this column in the style installer to make the listboxitem selected. Suppose I have 10 rows in a datatable. Now, if the user selects the second listboxitem, I can get that isequited from the corresponding row in the database as 1.
But how can I select other items at the same time? I think, as Kent said, I would rather use the property for binding. But how can I use a property to bind a list to data?
biju
source share