Solved

500pts: Navigating a dataset with a relationship

Posted on 2006-11-03
3
335 Views
Last Modified: 2010-04-16
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

ian
0
Comment
Question by:ianinspain
3 Comments
 
LVL 8

Accepted Solution

by:
redpipe earned 250 total points
ID: 17865480
Try the following how-to's from Microsoft with comments and source code (the latter is for office):

Navigating a Relationship Between Tables
http://msdn2.microsoft.com/en-us/library/d6s958d6.aspx

Walkthrough: Creating a Master/Detail Relation Using a Cached Dataset
http://msdn2.microsoft.com/en-us/library/ms178809.aspx
0
 
LVL 29

Assisted Solution

by:Gautham Janardhan
Gautham Janardhan earned 250 total points
ID: 17865560
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);


}
0
 

Author Comment

by:ianinspain
ID: 17888429
Excellent .. thanks for your help..... working great now... thanks...
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question