Menu

#29 Extend ItemCheck and ItemChecked events for TreeListView

v2.9
open
nobody
4
2015-03-03
2015-03-03
No

The TreeListView with a hierarchical tree works like a charm, but when changing the checkedness of one parent, several ItemCheck and ItemChecked events are triggered for the parent itself and the children.

This is logically correct, but in the event handlers there is no possibility to distinguish whether the event for the current item was triggered by direct user input (mouse, kbd, ie changing the parent) or by the hierarchical logic.

Maybe the ItemCheck[ed] events can be extented by inheriting ItemCheck[ed]EventArgs to add a property like the Action property of System.Windows.Forms.TreeViewEventArgs.
With the Action property you can learn how the current Event was triggered.

KR,
Oliver.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.