Click here to Skip to main content
13,095,921 members (51,938 online)
Rate this:
Please Sign up or sign in to vote.
I have created tree view which is binding categories and subcategories from data base.

i want to display icon image on left side of tree view . for example, in treeview i have categories such as amana tool as a parent node. and the router bits is child node of parent node(amana tool). so, in data base i have icon image of amana tool as well as icon image of router bits. now, i am able to show categories (amana tool) only in tree view. but, i need that left side should show the icon image of it's related categories and then categories name(amana tool).

Note : an image icon should bind from data base not static. because i need to show morethan 100 categories and it's icon image which is existing in data base.

please help me out.
Posted 11-Jul-13 2:15am
Updated 11-Jul-13 3:55am
And what's the problem? What have you tried?
ThePhantomUpvoter 11-Jul-13 10:53am
Why do you keep posting the same thing over and over?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I believe I understand what you're asking.

First, you need to know how to add icons to a treeview. I'm not sure if you know how to do this or not as you have not posted any code. Please refer to This Article[^] for information.

Second, you're stating that you don't want to have a static image list, but a dynamic one. You'll have to download the icons from the DB and dynamically load them to your image list at run time. Manage which icon in the array belongs to each category and make them show up as per the article above.

If you want code to help with the solution, you'll have to update your question with code to reference against. Good luck!


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100