Tree View

T

tclancey

Hi.

I have an app that uses a tree view control to list locations, when the tree
is clicked the application searches for stock in locations and displays them
in grid.

It's an odd thing, when I click a new tree node the previously selected and
the new node become invisible while the data transaction takes place in the
background.

My code for pulling back the data is in the AfterSelect event.

Has anyone else come accross this?
 
L

Lloyd Sheen

tclancey said:
Hi.

I have an app that uses a tree view control to list locations, when the
tree is clicked the application searches for stock in locations and
displays them in grid.

It's an odd thing, when I click a new tree node the previously selected
and the new node become invisible while the data transaction takes place
in the background.

My code for pulling back the data is in the AfterSelect event.

Has anyone else come accross this?

Without code this is conjecture but if you are adding the node and then
processing on the same thread the new node will not show on the treeview
until the processing is complete. You could try a .Refresh on the treeview
but I think until the processing is complete you are stuck with the
following possibles:

1. Put the data transaction in a thread
2. Create a timer that will fire immediately after you create the node. The
code in the timer will be the data transaction and you can make the interval
so small that you will not notice the time delay.

I have done both so it is up to you.

Lloyd Sheen
 

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

Top