473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Populate GridView from Selected Node in ASP.NET TreeView

Hello world.
I want to display hierarchical data in a ASP.NET TreeView. Then after clicking any item of TreeView I want to display the whole detail regarding this item into a GridView. Is there any resource somebody know? Please help.
Thank you in advance.
Jul 10 '08 #1
2 4054
DrBunchman
979 Expert 512MB
Hi sangam56,

This shouldn't be too difficult to accomplish. Have you built your TreeView already? If not check out this which I found very useful the first time that I used the control.

Once you've built your TreeView you need to use the OnSelectedNodeChanged event to fire a sub which will work out which node you've clicked and populate your GridView accordingly. Use the TreeView1.SelectedNode.Value property to find out which node was clicked.

Let me know how you get on,

Dr B

P.S. You posted this in the ASP Forum which is for Classic ASP only. I've moved it for you but in future please post all your ASP.NET questions in the .NET Forum. Thanks.
Jul 10 '08 #2
Thank u very much. I have started to go according ur suggestiuon. I will tell u if any problem occurs.
Jul 13 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jan Wrage | last post by:
Hi! I would like to implement a treeview in my existing application. It should show my entire Active-Directory structure, i.e. all Groups, Containers and OUs. Could somebody help me with...
9
by: Marina | last post by:
Hello! I have a database with some customers. Each one of them has 3 other customers under him etc. (something like an MLM system). Now, I want to create a treeview with this. Eg. C1 C11...
1
by: James L | last post by:
Hi, I have a treeview that has to be refreshed due to data changes. Is it possible to select the last node that they were viewing when the tree view was been populated once again? I have...
1
by: JN | last post by:
Hi All, I have a tree view which has parent nodes of each letter of the alphabet. The root node will be the customers name that relate to the parent node letter. I also have a gridview which is...
0
by: Michael Lewis | last post by:
Does anyone know if it is possible to bind a gridview to a treeview. Ie. I want to be able to expand a treeview node and see a separate gridview for each node. The gridview will be filtered by a...
1
by: Wes | last post by:
Hi there, Does anyone know how to get the selected node from a ASP.Net 2.0 TreeView in Javascript? I used to be able to get it in the old webcontrols one, but now the properties have changed...
2
by: thanneman | last post by:
Hello all, First off all, I appollogize for my englisch. I have a problem. I have a table in my sql database with 2 fields. Field 1 is an ID, and Field 2 contains the complete file locations. ...
0
Bob Ross
by: Bob Ross | last post by:
I am sure this is just me being stupid but I can't work out why there is no selected node when a treeview is disabled. I build the treeview in the code behind and disable it if a property is true...
1
by: John Devlon | last post by:
Hi, I've created a small webpage, containing a Treeview and a Gridiview. The treeview is populated with all folders and subfolders of a directory. so far, so good. When clicking on a node in...
1
by: =?Utf-8?B?Rmx5Z3V5?= | last post by:
I have a TreeView with so many nodes that it requires scroll bars. When the user selects a node the screen is refreshed and the selected node is no longer visible. The TreeView is opened to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.