Checkboxes - DotNet

How do I uncheck all checkboxes in the first column of a Listview in DotNet?

for i=1 to listview_rollout.dncTaskList.Items.count do
(
listview_rollout.dncTaskList.Items[i].checked = true
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Swordslayer's picture

Note that dotnet collections

Note that dotnet collections are zero-based, so the loop has to be like this:

for i = 0 to (listview_rollout.dncTaskList.Items.count - 1) do ...

Budi G's picture

Hi Swordslayer, nice info .

Hi Swordslayer, nice info . thank you.
I'm not to familiar with dotNet . i'm still learning about that...

regards

Budi G's picture

You can try like this: for

You can try like this:

for i=1 to listview_rollout.dncTaskList.Items.count do
(
  lvitems = listview_rollout.dncTaskList.Items
  lvitems[i].checked = not lvitems[i].checked -- it's like a switcher in a single button
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.