I’m trying to loop through items of a checkbox list. If it’s checked, I want to set a value. If not, I want to set another value. I was using the below, but it only gives me checked items:
foreach (DataRowView myRow in clbIncludes.CheckedItems) { MarkVehicle(myRow); }
If the the check is in indeterminate state, this will still return true. You may want to replace
with
if you want to only include actually checked items.