Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Changing color on a ChildNode in a treeview

Posted on 2012-08-16
4
Medium Priority
?
1,183 Views
Last Modified: 2012-08-25
I have a dynamic treeview that I'm populating from a database.
there are over 200 items with child/grandchild/great grandchild/etc.. nodes in them.
I need to change the fore color of certain nodes and all the child/grandchild/great grandchild/etc for that root node.

I'm currently using  VB ASP .Net
0
Comment
Question by:ECRAdmin
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38304838
If you need to change the style of selected TreeNode elements, then I would suggest applying different CSS style rules.
0
 
LVL 18

Expert Comment

by:Rajar Ahmed
ID: 38305406
can u post Sample code to work directly on the issue
0
 

Accepted Solution

by:
ECRAdmin earned 0 total points
ID: 38312776
i figured it out on my own.  I took the value of each of the parent nodes and put them into an array and then put that array through a loop and tested it again each of the items.  if the value of that parent and child of that parent matched i changed the color using HTML code instead.
0
 

Author Closing Comment

by:ECRAdmin
ID: 38332114
because no-one could help me and i had to figure it out on my own.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question