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

gridview with childnodes

Ok, I've been all around the web looking for code on how to do this on
..net 2.0 and have not found exactly what I'm looking for. And for the
few examples that I did happen to come across I was unable to get them
to work. So here it is:

I have a webservice that returns a dataset with 3 datatables. For the
purpose of this explanation we'll work with the first two. Table(0)
has a one to many relationship with Table(1)...
Table(0)
ID -value- -desc-
1 First this is the first parent
2 Second this is the second parent
Table(1)
ID ParentKey -value- -desc-
1 1 FirstChild this is the first child
2 1 SecondChild this is the second child
3 2 ThirdChild this is the third child
I'm trying to get the results to appear in a hierarchal layout like
which follows:
First this is the first parent
FirstChild this is the first child
SecondChild this is the second child
Second this is the second parent
ThirdChild this is the third child
I've added a data relation to the dataset for these tables. The xml
in the debugger displays the table(1) results nested within the
table(0) results, so it's working correctly. But I can't get the
results to display in the format above. Any help or info would be
greatly appreciated. Thanks!
Note: table(1) fields do not coincide with those of table(0). In my
real data there are 5 columns in table(0) and 12 columns in table(1)
-Jeff

Oct 23 '06 #1
1 2542

Not sure nested gridview can solve your solution

http://www.codeguru.com/columns/vb/article.php/c12647/

Shahzad Godil
Karachi-Pakistan

<je*********@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Ok, I've been all around the web looking for code on how to do this on
.net 2.0 and have not found exactly what I'm looking for. And for the
few examples that I did happen to come across I was unable to get them
to work. So here it is:

I have a webservice that returns a dataset with 3 datatables. For the
purpose of this explanation we'll work with the first two. Table(0)
has a one to many relationship with Table(1)...
Table(0)
ID -value- -desc-
1 First this is the first parent
2 Second this is the second parent
Table(1)
ID ParentKey -value- -desc-
1 1 FirstChild this is the first child
2 1 SecondChild this is the second child
3 2 ThirdChild this is the third child
I'm trying to get the results to appear in a hierarchal layout like
which follows:
First this is the first parent
FirstChild this is the first child
SecondChild this is the second child
Second this is the second parent
ThirdChild this is the third child
I've added a data relation to the dataset for these tables. The xml
in the debugger displays the table(1) results nested within the
table(0) results, so it's working correctly. But I can't get the
results to display in the format above. Any help or info would be
greatly appreciated. Thanks!
Note: table(1) fields do not coincide with those of table(0). In my
real data there are 5 columns in table(0) and 12 columns in table(1)
-Jeff

Oct 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ason | last post by:
Hi, I just tried to replace a single XmlNode with several ChildNodes. When doing this with the following code i found out that if you get the ChildNodes with 'ChildNodes' - property the nodes...
2
by: chuck | last post by:
Hi, I am modifying some code from here http://www.quirksmode.org/dom/domform.html I have a div 'readroot' that I clone. I change the change the id and name of the childnodes of 'readroot' to...
3
by: Q1tum | last post by:
Hi all, I have a problem with getting the amount of childs in a XML structure, the strucure is somewhat like the following: <?xml version="1.0" encoding="iso-8859-1"?> <cms> <num>21</num>...
4
by: Nick Zdunic | last post by:
Is there an example of using client side script to disable selection of some items in a drop down that I could follow. It would seem tricky as there are multiple drop downs in the GridView. I...
1
by: yawnmoth | last post by:
Given an element ID, is there a way to figure out what index one would need to use in the parentNode's childNodes array to get at that element? For example... <body> <div id="parent"> <div...
5
by: Moses | last post by:
HI The Value for childNodes.length differs with mozilla and IE Is it problem with my coding..... I could not under stood............. The following is the details
1
by: Marc Pavo | last post by:
Since Ajax.net isn't production-worthy yet, I'm looking for any info on this (as well as manipulating GridView from client script in general). Thank you!
2
by: willyWEB66 | last post by:
Hi everyone, I have this code in javascript where the XML file is loaded and displayed to an html using XSLT. It works fine in IE but not in Firefox. My problem is in the looping to the...
1
Frinavale
by: Frinavale | last post by:
I'm working on an ASP.NET application using VB.NET for server side code. I have a GridView listing a bunch of stuff. Above the GridView I have a checkbox named "ChkBx_SelectAll". If this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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
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...

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.