B
Boris Nienke
hi,
i would like to use the checkboxes in a ListView. This works.
But:
- when i click an item then the checkbox is toggled too
is there a way to just toggle the checkbox by clicking the checkbox (and
NOT the item/subitems)?
i know, this is a FAQ but i havn't found a solution yet.
The only one was: "use the ItemCheck Event like this":
private void listView1_ItemCheck(object sender,
System.Windows.Forms.ItemCheckEventArgs e)
{
if (e.CurrentValue != e.NewValue)
{
e.NewValue = e.CurrentValue;
}
}
but then i cannot toggle the checkbox with the stylus at all - so it's
not really a solution
Any ideas?
Boris
i would like to use the checkboxes in a ListView. This works.
But:
- when i click an item then the checkbox is toggled too
is there a way to just toggle the checkbox by clicking the checkbox (and
NOT the item/subitems)?
i know, this is a FAQ but i havn't found a solution yet.
The only one was: "use the ItemCheck Event like this":
private void listView1_ItemCheck(object sender,
System.Windows.Forms.ItemCheckEventArgs e)
{
if (e.CurrentValue != e.NewValue)
{
e.NewValue = e.CurrentValue;
}
}
but then i cannot toggle the checkbox with the stylus at all - so it's
not really a solution
Any ideas?
Boris