By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,812 Members | 1,288 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,812 IT Pros & Developers. It's quick & easy.

large xml file and tree view

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.