Mastodon
Programmierung

Do not toggle Checkbox when user clicks an item

You know the problem: You have a ListView in Report-View with Checkboxes set to true. Fine. But now, if the user clicks on an item to select it (FullRowSelect or not – it doesn’t matter) the checkbox is toggled too. But sometimes this is not what you like to have.

So here is the solution:

In the FormLoad-Event (or whereever you like) change the “Activation”-Property of the ListView like this

ListView1.Activation = ItemActivation.TwoClick;

Now the checkbox is toggled only if you click on the checkbox itself – not when you click on the item.

0 Kommentare zu “Do not toggle Checkbox when user clicks an item

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.