I have a form with a list view control that has the checkboxes property set
to true. This provides checkboxes as the first column in the listview.
When a listviewitem is checked another form is popped up with an ok and
cancel button it - only if the user clicks the ok button this form do I want
the item in the listview to be checked.
I have overriden the ItemCheck event of the listview and set the e.newvalue
to be unchecked when the cancel button on the other form is clicked. This
works correctly except when the item in the listview is selected before it
is clicked. If the user highlights the row in the listview and then clicks
the item whatever the e.newvalue is set to it always ends up being checked.
This is the same when the listview item is double clicked - the item will be
checked if it was previouly unchecked - regardless of the e.newvalue.
Could anyone suggest how I could override this functionality or stop this
occuring in the future.
Thanks
Sandra
to true. This provides checkboxes as the first column in the listview.
When a listviewitem is checked another form is popped up with an ok and
cancel button it - only if the user clicks the ok button this form do I want
the item in the listview to be checked.
I have overriden the ItemCheck event of the listview and set the e.newvalue
to be unchecked when the cancel button on the other form is clicked. This
works correctly except when the item in the listview is selected before it
is clicked. If the user highlights the row in the listview and then clicks
the item whatever the e.newvalue is set to it always ends up being checked.
This is the same when the listview item is double clicked - the item will be
checked if it was previouly unchecked - regardless of the e.newvalue.
Could anyone suggest how I could override this functionality or stop this
occuring in the future.
Thanks
Sandra