VirtualStringTree - Any way to determine when a collection of nodes have been checked?

Just have an internal list where you could store checked nodes and onChecked event update the list. When checking large number of nodes, just iterate through your list and construct SQL statement.

This may work, but im really after an point in time when I know when all the nodes have completed checking. Seems this may not exist. – Simon Mar 8 at 19:34 The OnChecked event is triggered when check state is changed.So why don't you simply use some variable which will be by default the total count of your nodes and in the OnChecked event you just decrease its value.

When you reach 0, you can be sure that all of your nodes change their states. – user532231 Mar 9 at 9:30.

No, the iteration is the only way to do it. Even CheckedCount property do it in this way.

Just doing some tests, but it looks like I can simply use the OnMouseUp() event. Should have probably checked before, oops.

Yes, of course. You can use OnMouseUp, which triggers OnChecked (or more precisely DoCheckClick) just as you find out. But the OnMouseUp will trigger wherever you click on the node.

The OnChecked event fires at mouse up only if you release your mouse button over the same node check box as you pressed. So if you are looking for the event which fires after check state change, use the OnChecked. The check state change IS COMPLETED there.

– user532231 Mar 8 at 11:49 2 Don't use the mouse event, at least not by itself. You'll miss the nodes that get checked through other means, such as the keyboard. – Rob Kennedy Mar 8 at 15:13 Good point rob, didn't think of that.

I will have to reconsider. – Simon Mar 8 at 19:32.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions