• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

500pts: Navigating a dataset with a relationship

Hi there,

Can anyone help, i imported an xml file into a dataset using dataset.readxml... and it  is working great..

It also has relationships....

How would i navigate the dataset i.e. movenext, first, last etc ... and taking into consideration that when the main table moves to record 2 ... then the relationship tables also move?

There are currently 3 tables in the dataset and the data is there...

I am just a bit unclear how to navigate it using the relationships

Thanks in advance

2 Solutions
Try the following how-to's from Microsoft with comments and source code (the latter is for office):

Navigating a Relationship Between Tables

Walkthrough: Creating a Master/Detail Relation Using a Cached Dataset
Gautham JanardhanCommented:
this is for a cached data set

private void btnNext_Click(object sender, System.EventArgs e)
this.BindingContext[objCustOrd,"Customers"].Position = (this.BindingContext[objCustOrd,"Customers"].Position + 1);

ianinspainAuthor Commented:
Excellent .. thanks for your help..... working great now... thanks...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now