473,394 Members | 1,759 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,394 software developers and data experts.

Xml to treeview to datagrid

I'm new to xml ..

I had created a application such a way that I have to display the xml file in treeview control in C#.Net Application ...

If I select the particular Node it should display the attributes of that node in DataGrid

But I am displaying the attributes in dataGrid if i use the following Code
XmlNode x = root.SelectSingleNode("//JDF")


If i am using nodeset in xml for searching the specified node
XmlNode x = root.SelectSingleNode("//LocalName'"+tree.SelectedNode.Fullpath+"'")

An unhandled exception has occured in your application .
localname'JDf\customerinfo\company\contact\comchan nel' has an invalid token.



If I am using Without Nodeset
XmlNode x = root.SelectSingleNode("//'"+tree.SelectedNode.Fullpath+"'")

An unhandled exception has occured in your application .
The Expression passed to this method should result in a NodeSet..





But the problem is I have to display the Attributes of a particular node in DataGrid based on TreeView_AfterSelect event................
---------------------------------------------------------------------------------
XmlNode x = root.SelectSingleNode("//LocalName'"+tree.SelectedNode.Fullpath+"'")

--------------------------OR----------------------------------------------------
XmlNode x = root.SelectSingleNode("//'"+tree.SelectedNode.Fullpath+"'")
----------------------------OR-----------------------------------------------------


I need altenate code for above mentioned line .....


Please help me .........................
Oct 25 '06 #1
1 1938
debasisdas
8,127 Expert 4TB
Qestion moved to .NET Forum.
Nov 3 '07 #2

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

Similar topics

0
by: Banda RamaNarsi Reddy | last post by:
Hi, We have a Datagrid and we are using third party tool treeview control. it's like we have to add treeview control in the datagrid dynamically, such that each cell will have a tree structure...
0
by: Marco Martin | last post by:
Hi all, I need to figure the best solution to my problem. <Background> A Bill of materials application that has a treeview as the master and a datagrid as the details. The treeview holds...
1
by: Shalin Parmar | last post by:
hello I am a new bee in asp.net. I want to make a forum in my site which shows message posts and its total replies. So I had put treeview (IE Web Controls) in datagrid. I need help for that. How...
2
by: Sandy | last post by:
Is there some way to incorporate paging with a treeview, or are there some new controls out there that would be capable of this sort of thing? Can a treeview be put in a datagrid? If so, how?...
5
by: lanem | last post by:
I want to display some drill-down data with a datagrid look. I can get the exact functionality I want with a treeview, but I don't like the way the treeview looks and formats the data. I want a...
2
by: Tymbow | last post by:
I'm building a web application that is analogous to the Windows XP file explorer in function. The left column contains a TreeView, and the right column a DataGrid populated by selecting TreeView...
5
by: Paul | last post by:
Hi, I am a self taught VBA programmer, and I'm trying to learn VB2005 Express (The price was right). I like the look of the treeview control, and I'd like to use it as a menu system for my users,...
3
by: Shawn | last post by:
Hi. I'm working with the TreeView control in my ASP.NET 1.1 application. I have a problem I haven't been able to figure out. When I click on a node (not expand), whether it's a parent node, a...
0
by: saravanaVijayakumar | last post by:
I'm new to xml .. I had created a application such a way that I have to display the xml file in treeview control in C#.Net Application ... If I select the particular Node it should display the...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.