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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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 (e-mail address removed).

Jay Taplin, MCP
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top