Adam has a really interesting observation on data binding in .NET. Adam, thank you in advance, because you most probably just saved me lots of time at some unknown point in the future. Not only time, in fact, but I'm also saved from having to go through the conceptual discovery he spent the time going through.
I hope he doesn't mind, but I'll quote the whole thing here because the observation is short and not easily excerptable:
Using an object as the DataSoucre for two different ComboBoxes in a Windows Form means that the selection of those two boxes is synchronized. You change one, the other changes too, which is not what I expected. I just wanted to use the same IList in two drop-downs. It appears that in order to do that I need to copy the list into an array, then use .AddRange() on each box.
Why why why?
Because data-binding is conceptually about controls viewing the same record in a database, not conceptually about being MVC.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):