M
Marcelo
Greetings!
I develop a multiple forms application in Microsoft Visual
Studio C++ .NET 2003. I am working with a listView with checkBoxes and
an event relative to the clicking of a checkBox in this list
(listView1_ItemCheck). When the event starts, I need to know which was
the check checkBox (its index) that shot the event. But I do not get to
do that.. I've already tryed:
- Use the "listView::CheckedItems" property, but it appears that the
item is checked just when the event is finished...so the box I checked
is not counted in "CheckedItems" property
- Use a dynamic_cast...
ListViewItem* checkedItem = dynamic_cast<ListViewItem*>(sender);
int index=checkedItem->get_Index();
None work... any idea of how to get the index of the checked item is
welcome.
Marcelo Roggia Schio
I develop a multiple forms application in Microsoft Visual
Studio C++ .NET 2003. I am working with a listView with checkBoxes and
an event relative to the clicking of a checkBox in this list
(listView1_ItemCheck). When the event starts, I need to know which was
the check checkBox (its index) that shot the event. But I do not get to
do that.. I've already tryed:
- Use the "listView::CheckedItems" property, but it appears that the
item is checked just when the event is finished...so the box I checked
is not counted in "CheckedItems" property
- Use a dynamic_cast...
ListViewItem* checkedItem = dynamic_cast<ListViewItem*>(sender);
int index=checkedItem->get_Index();
None work... any idea of how to get the index of the checked item is
welcome.
Marcelo Roggia Schio