Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net BindingDictionary

I have started using BindingList(Of T) for my generic collections whenever I need the objects to interface with the GUI instead of List(Of T). This has worked well for me so far but a few of my collections are stored in Dictionary(Of TKey, TValue) and there doesn't appear to be a corresponding BindingDictionary(Of T).

Has anyone else come across the necessity to use this, and how did they achieve it? Should I implement this myself? (How?) or is there a better solution already available?

Cheers

like image 399
ChrisAU Avatar asked Feb 21 '26 16:02

ChrisAU


1 Answers

You should be able to unroll your dictionary into a BindingList(Of KeyValuePair(Of TKey, TValue)) but I'm not sure if it will provide all of the behavior you are trying to achieve.

like image 177
Jim Counts Avatar answered Feb 23 '26 08:02

Jim Counts



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!