Hi,
I'm using winListView as a List with CheckboxStyle on CheckBox.
I display a list which contains checked items or not, then I want to save this checked Items Collection when I click on "OK" and send it to another method in order to process thes checked items.
I'm doing this in my OkButton_Click event with :
UltraListViewCheckedItemsCollection checkedItemCollection = this.rightListView.CheckedItems;
This is very weird because sometimes checkedItemCollection is empty.. although there are items checked on the listView.
Is there any reported bug concerning this?
Am I missing something?
thx
If there are items checked, the CheckedItems collection should indeed have a non-zero count. I'm not at my desk right now to confirm whether this is working correctly in the latest build, but the last time I used the collection it was. One thing to note is that is if the items you are considering to be checked are actually in the Indeterminate state, they would not appear in the CheckedItems collection, since indeterminate is the same as unchecked, as far as the CheckedItems collection goes.
Hi Brian, thank you for your answer,
I haven't set the checkboxes on Tri-State so I think they cannot be "Indeterminate". I think I no longer have this problem. It seems to work fine now, I don't know maybe I was missing something!
Anyway, if the problem come again, I'll be back!
Regards,
Pierre