Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL-Server
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 3:15am
Edited 11-Jul-13 4:55am
v2
Comments
Sergey Alexandrovich Kryukov at 11-Jul-13 9:59am
   
And what's the problem? What have you tried?
—SA
ThePhantomUpvoter at 11-Jul-13 10:53am
   
Why do you keep posting the same thing over and over?

1 solution

Rate this: bad
good
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!
 
Hogan
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 CPallini 155
3 PIEBALDconsult 150
4 BillWoodruff 148
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2014
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