Jump to content

Dynamically populate TreeView children on first expand


Recommended Posts

Hi!

I have a specific need: my app will have to display many (MANY) data on a tree view. So I want to dynamically populate it on expand.

I first populate root elements, that I want that on double clique (expand), while responding to TVN_EXPANDING, this item will have it's children.

The problem is that when an item has no children, impossible to expand it! The [+] button doesn't appear.

What's the best solution to this? I think I will test to add to each item a dummy child that will be deleted in TVN_EXPANDING.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...