Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 280179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:05:44+00:00 2026-05-12T05:05:44+00:00

I have a DataSet which contains two tables, Publication and Owner, which are linked

  • 0

I have a DataSet which contains two tables, Publication and Owner, which are linked on Publication ID. How do I query the dataset? What I am trying to do is get all of the owners for a particular publication, and then I want to iterate over the resulting set, concatenate the owner names together and populate a label with the information…

But lets begin with, how do i query the dataset?

I also have a DataRelation, can I query that somehow to get the child rows for the current row?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:05:45+00:00Added an answer on May 12, 2026 at 5:05 am

    ADO.NET supports two fundamental approaches for performing filtering and sorting of datasets:

    The DataTable Select Method – This method is overloaded to accept arguments to filter and sort data rows returning an array of DataRow objects.

    The DataView object sort, filter and find methods – This object uses the same filter arguments supported by the Select method, but the DataView exposes structures that can be bound to data-aware controls. See DataView.RowFilter

    Iterating over filtered rows is as easy as:

    DataTable dt;
    ...
    foreach (DataRow dr in dt.Select(filter))
    {
        // ...
    }
    

    This article contains several examples: A Practical Guide to .NET DataTables, DataSets and DataGrids – Part 1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dataset which contains two tables 'AdvBusiness' and 'AdvertiserCategory' index 0 and
I have a Dataset that contains tables from a university database, two(actually more) of
I have two tables both of which have columns StartDate and EndDate. I'm trying
I currently have a single DataSet declared which contains 3 tables. For sake of
I have a (disconnected) typed Dataset in an XML, which I query in LINQ:
I have a script which contains two classes. (I'm obviously deleting a lot of
I have two entities ( Dataset and Item ), where the first one contains
I'm using a dataset. I have a table Adapter called PackageTableAdapter , which contains
I have a site 'accounts' table which contains account details for all our users.
I have a dataset which contains a string key field and up to 50

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.