CheckedListBox.CheckedItems Issue
-
Hi There, I'm having some trouble with CheckedListBoxes in my application. The application is written in C# in .NET 1.1. It's multi-tabbed, and on each tab there is an instance of my user control, which contains 6 combo's and 6 CheckedListBoxes. The control works fine when you stay on a single tab, however when I switch tab and come back again, all the CheckedListBoxes still have their data, but they lose the CheckedItems collection, so they are all unchecked. Has anyone come across this problem? Thanks in advance,
-
Hi There, I'm having some trouble with CheckedListBoxes in my application. The application is written in C# in .NET 1.1. It's multi-tabbed, and on each tab there is an instance of my user control, which contains 6 combo's and 6 CheckedListBoxes. The control works fine when you stay on a single tab, however when I switch tab and come back again, all the CheckedListBoxes still have their data, but they lose the CheckedItems collection, so they are all unchecked. Has anyone come across this problem? Thanks in advance,
Jim, (I could wait til you get back from lunch.. but I think the code project needs to know as well :-)) I found the problem, its a known bug in .NET 1.1. Documented here: http://support.microsoft.com/kb/833033 The problem only occurs when the checked list box is bound to a data table. It looks like Microsoft's only solution is to maintain a collection of checked items and refill on tab switch (rubbish!). But I guess that is what we're going to have to do... Rob.
-
Hi There, I'm having some trouble with CheckedListBoxes in my application. The application is written in C# in .NET 1.1. It's multi-tabbed, and on each tab there is an instance of my user control, which contains 6 combo's and 6 CheckedListBoxes. The control works fine when you stay on a single tab, however when I switch tab and come back again, all the CheckedListBoxes still have their data, but they lose the CheckedItems collection, so they are all unchecked. Has anyone come across this problem? Thanks in advance,
I think when u change the Tab Button then u Fill the The Combo with DataBase, So u lost urs Current Status/View State
-
I think when u change the Tab Button then u Fill the The Combo with DataBase, So u lost urs Current Status/View State