Treeview question

  • Thread starter Thread starter Kay
  • Start date Start date
K

Kay

Hi all,

I have some code in the treeveiw_afterselect event... everytime the treeview
is reloaded it trigger the code, is there any method to stop it? It always
select the first node my default... annoying!

Kay
 
I think you can create a form variable/property and set it to True just
before the treeview is reloaded and then in the "BeforeSelect" event, set
e.cancel to the form variable/property then reset the form variable/property
to false so the after select event will be executed the next time a node is
selected.
 
Good idea, thax Dennis~~


Dennis said:
I think you can create a form variable/property and set it to True just
before the treeview is reloaded and then in the "BeforeSelect" event, set
e.cancel to the form variable/property then reset the form
variable/property
to false so the after select event will be executed the next time a node
is
selected.
 

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