|
-
Apr 23rd, 2003, 08:22 AM
#1
Thread Starter
Addicted Member
Tab control & checked listbox?
Look at this:
On win form I have tab control with two tabpages. On the first tabpage I have checkedlist box bind to datatable like this
lstChk.DataSource = dT 'dT is datatable
lstChk.DisplayMember = "name"
lstChk.ValueMember = "ID"
When I checked one(two or more) items and go to other tabpage and back again on first tabpage checked items are unckecked. That's strange. And in that case lstChk don't fire lstChk_ItemCheck event, which normally fires when items check/unckeck in checked listbox, and lstChk.CheckedItems collection is empty although it has some items(checked on first tabpage).Did anybody know why is that happening and how to prevent that?
regard j
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|