Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two Way Binding on Multi-select WinForms Listbox?

I have a project where we are loading a multi-select listbox from a collection of objects.
I have another entity object that has a collection that I want to bind to SelectedItems somehow.

Is there any way to do this using object binding sources or some kind of binding source without writing code? Sure I can loop through the collection and get the selected items but I'd prefer to do it more cleanly with windows data-binding.

Is this possible?

like image 210
mgerety Avatar asked Mar 20 '26 01:03

mgerety


1 Answers

Unfortunately you can't bind the SelectedItems (or CheckedItems in CheckedListBox)... I can't tell how many times I wished it were possible !

like image 112
Thomas Levesque Avatar answered Mar 22 '26 08:03

Thomas Levesque



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!