473,406 Members | 2,377 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,406 software developers and data experts.

parent child relations

Hi

I have an xml schema with a customer/order
master child relationship managed by a dataset

In the windows form I have the customer
fields bound to the customer node and
a datagrid for the orders

My problem is that the relationship in the
schema is not carried onto the form

I would be grateful for any pointers on this
as I am very stuck

thanks

Jonathan

--

===============
Jonathan Crawford
01273 440018
07799 068570
fax 01273 380221
jc@jcrawford.co.uk
===============
Nov 12 '05 #1
1 1146
Hi,

I tried the same example and came up with the same results manually.
I had the customers bound to a listbox and handled the
SelectedIndexChange and changed the filter on the orders manually.
Here's the code.

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ListBox1.SelectedIndexChanged

Dim dataValue As String
Dim dr As DataRowView =
CType(ListBox1.Items(ListBox1.SelectedIndex), DataRowView)
dataValue = dr.Item("CustomerID")
DataGrid1.DataSource = co.Orders.Select("CustomerID = '" &
dataValue & "'")

End Sub

I wish it would have been automatic.

I hope this helps.

Mike Douglas
www.doitconsultants.com

On Tue, 29 Mar 2005 18:57:39 +0100, "Jonathan Crawford"
<jc@jcrawford.co.uk> wrote:
Hi

I have an xml schema with a customer/order
master child relationship managed by a dataset

In the windows form I have the customer
fields bound to the customer node and
a datagrid for the orders

My problem is that the relationship in the
schema is not carried onto the form

I would be grateful for any pointers on this
as I am very stuck

thanks

Jonathan


Nov 12 '05 #2

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

Similar topics

16
by: Suzanne Vogel | last post by:
Hi, I've been trying to write a function to test whether one class is derived from another class. I am given only id's of the two classes. Therefore, direct use of template methods is not an...
4
by: What-a-Tool | last post by:
I am trying to write a program that will take all the members of a data base, add them to a tree, with all child relations as sub-nodes. I am having a problem getting the parent child relations...
4
by: Frank | last post by:
Hello, I have a dataset with 2 tables and a relation (parent - child). I linked that ds to a datagrid. Shows everything fine (very little coding for such functionality!). But.. in the child row I...
1
by: Jan Lorenz | last post by:
Hello, my problem is to show a datarelation between two tables (parent/child) in a datagridview. It doesn't works. There is always shown only 1 table in the grid (in relation of...
0
by: Ambica Jain | last post by:
I have a data grid called Files, which has some columns like FileName, Col1, Col2, ... , Col8. Then i have a combobox which allows user to select from Col1 to Col8 and based on this selection, i...
1
by: Hexman | last post by:
Hello All, What I'm trying to do is update a child record using a parent-child relation. I want to find out if it is faster than than doing multiple selects. Anyways, I've created a dataset...
0
by: Iain | last post by:
Hi All My apologies for posting this here but the Delphi newsgroup is very slow. Using Borland Developer Studio 2006 - creating a C# .net application. I have a datagrid (id = "Documents")...
0
by: syntax | last post by:
Hi, I am quite new to C# .NET, trying to understand the MDI Parent / Child form relations.. currently have an issue with regards to adding a child form to a mdi parent split container panel via...
0
by: Chris | last post by:
I have two datagridviews on a form that are linked via a datarelation. I am using: "foreach ( DataGridViewRow tripRow in scenario_TripsDataGridView.Rows )" to loop thru all the rows in the...
1
by: Sep410 | last post by:
Private Sub frmSearch_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sql1 As String Dim sql2 As String Dim da1 As SqlDataAdapter ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.