View DataSet Relational Data

E

Evan M.

Hello everybody, hopefully someone can help me with this, or point me
in the right direction.

I have a DataSet that I've read in from an XML file with an associated
schema. The DataSet ends up with two tables: document and category.
document contains document information, including a category ID inside
of a <category> tag. The category table / XML entries only have two
columns: <id> and <name>.

Inside of my XSD file I've created the relationship between
document:category and category:id (or atleast, so I believe). Now, I'm
trying to get it so that in my repeater control that outputs the list
of documents, rather than it showing the id number from
document:category, it instead shows the related category:name
associated with it. (i.e. it says "New Products" rather than the ID# of
5).

Anyone know how I can do this? Thanks
Evan M.
 
H

Harolds

I haven't used it myself, but it seems that the DataViewManager is what you
are looking for.

Take a look at:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconsettingdefaulttableviewsusingdataviewmanager.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top