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 492717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:08:28+00:00 2026-05-13T02:08:28+00:00

I have a little problem. I don’t know how to use the DataSet in

  • 0

I have a little problem. I don’t know how to use the DataSet in VB.NET correctly.

In Visual Studio 2008 I created a DataSet called Network. For the DataSet I took two tables from my database, tServer and tClient. tClient has a foreign key referencing the ID in tServer.

After creating the DataSet I found a new namespace called NetworkTableAdapter which contains the adapter for tServer, tClient and an AdapterManager. There is also a new class called Network, which is the DataSet and contains the DataTables for tServer and tClient.

But how can I fill these DataSet with data and access it? The adapter only have GetData() and Fill() methods, which fill a DataTable, but I want to fill the DataSet.

Sorry for my bad english, I hope that someone understand my problem and can help me. 🙂

Torben

  • 1 1 Answer
  • 1 View
  • 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-13T02:08:28+00:00Added an answer on May 13, 2026 at 2:08 am

    As far as im aware you cant automagically fill a full dataset it this way. Youd have to populate each table in it. To do so, if your using the visual dataset, just right click on the table adapter, and add query. From here you can either add SQL straight into the table adapter, or use a stored procedure.

    For the example of a select, the select must match the columns in your dataset.

    So if we have a DataTable called CustomersTable, and we have added a func called “GetNewCustomers() you could do CustomersTable dtCustomers = adapter.GetNewCustomers()

    See a much better description and tutorials start with #1 and #2 here

    Datasets are .NET 2.0 however. I would recommend maybe getting to grips with them and then looking at LINQ2Entities to map your database.

    Hope this helps.

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

Sidebar

Related Questions

I have a little problem and I don't find any solutions. In my asp.net
I have a little problem because I don't know whats the best way to
I have a little problem, I don't know how to create the script (with
I have a little Problem but don't know the Solution! I have wrote a
I have a little problem and I don't know how can I fix it
I have a little problem right now and I don't know how to fix
I have a little problem in C++ I don't know how to solve. The
I have a little problem with plists. I don't know how to read data
I have a little problem about using jQuery (I really do not know jQuery
I have a little problem that I don't understand. I have a db that

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.