I use ObjectListView to list all items. And I don’t know how to receive the click event when I click the title of Group cell, which is generated by the ObjectListView.
I want to implement the function which checks (or unchecks) all items in the clicked group.
Edit:
I overcomed by add one button to check/uncheck the selected items. The ObjectListView will select all items of the clicked group, so I invoke the check/uncheck behavior by a button.
Edit:
The GroupTaskClicked event doesn’t work. The version of ObjectListView is v2.6.0 (2012/10/20), with visual studio 2010.
Well, the GroupStateChanged event will fire, but it fires more than one time. I will explain more on my answer.
The GroupStateChanged will fire. I listen the event by following method.
When I click a group cell, named “MyClickGroup”, it will fire 2 events.
If I click a group cell named “MyNewGroup” while another cell named “MyClickGroup” was clicked first, it will fire 4 events.
So, the
GroupStateChangedevent , whoseSelectedandFocusedstate areTrue, means the selected and focused group cell currently. It is what I want about the clicked event on the group cell.