471,312 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,312 software developers and data experts.

large xml file and tree view

Hi, i have got large xml file which i have to show in tree view
windows form.I tried with loading all those data at once to tree view
but it took a long time to render that tree view.Now i am looking to
polpulate tree view selectively.Only populating those nodes that user
expands it by reading xml file.Can any one plz help me with some
suggestions or point out to some sample code(it would be better) on
how can i accomplish this.Thank in advance.
Jun 27 '08 #1
1 2447
On May 19, 12:10*am, happy.john1...@gmail.com wrote:
Hi, i have got large xml file which i have to show in tree view
windows form.I tried with loading all those data at once to tree view
but it took a long time to render that tree view.Now i am looking to
polpulate *tree view selectively.Only populating those nodes that user
expands it by reading xml file.Can any one plz help me with some
suggestions or point out to some sample code(it would be better) on
how can i accomplish this.Thank in advance.
Hi,

What you can do is define your custom enumerator , this is a great use
of the "yield return" feature of 2.0
you can detect when a node is opoening and theyn generate new nodes
below it as needed.

Also you need to make sure thatn the tree is displayed closed by
default.
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

55 posts views Thread by Jonas Smithson | last post: by
2 posts views Thread by Gustaf Liljegren | last post: by
3 posts views Thread by Stefan Schwarzer | last post: by
2 posts views Thread by kaustubh.deo | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.