Home All Groups Group Topic Archive Search About

After Select.......not really?

Author
14 Jan 2006 4:00 AM
EdB
I am using the TreeView control and trying to determine if the user has
selected the top node.

Using the After_Select method, what I am seeing is that if I click on a
lower node, the After_Select method processes twice, with e.node.index being
= 0 the first pass through, then equal to the item the user actually selected
the second time through.

If the user selects the first entry, it processes After_Select only the one
time.  So I can't tell if it's truly what they clicked, or if I'm just
passing through the first time.

Author
14 Jan 2006 4:10 AM
Jay Taplin
I just looked into this, and cannot duplicate your issue, at least not in
2005 Pro.  If your code is small enough and you feel comfortable doing so,
feel free to either post it or e-mail me at jtap***@integraware.com.

Jay Taplin, MCP
Author
14 Jan 2006 4:26 AM
EdB
well, I'm using 2003 Pro, but yeah, I just simplified the problem and there
must be something in my code that is actually tripping the control a second
time, but I can't find it as yet.

Thanks

Show quoteHide quote
"Jay Taplin" wrote:

> I just looked into this, and cannot duplicate your issue, at least not in
> 2005 Pro.  If your code is small enough and you feel comfortable doing so,
> feel free to either post it or e-mail me at jtap***@integraware.com.
>
> Jay Taplin, MCP
>
>
>
Author
14 Jan 2006 6:42 AM
Cor Ligthert [MVP]
EdB,

Be aware that if you in an event of this kind of controls select/deselect
something by code. The events for select/deselect will the thrown again.
This gives a kind of strange recursive effect.

I hope this helps,

Cor