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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:55:55+00:00 2026-05-31T13:55:55+00:00

I created a dataset (DataSet1.xsd). I then created a TableAdapter (DataTable1TableAdapter) and added a

  • 0

I created a dataset (DataSet1.xsd). I then created a TableAdapter (DataTable1TableAdapter) and added a query (images below):

dataset

query

When I preview the data, I see exactly what I was expecting: lots of returned rows.

In my C# program, in the button1_Click event, I tried to type the following:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MailingList
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DataTable1TableAdapter.Fill(this.DataSet1.DataTable1);
            foreach (DataRow row in DataTable1.Rows)
            {
                // insert code here to work with the data
            }

        }
    }
}

The problem is that IntelliSense doesn’t recognize my datatable and places a squiggly red line under it. Since I described|desgined the datatable in the designer screen, shouldn’t it be available to me to use in my program? Or, do I have to define the datatable and add the columns to it within the program?

Thanks for any help!

  • 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-31T13:55:56+00:00Added an answer on May 31, 2026 at 1:55 pm

    You need to add the Dataset to Form1.

    From MSDN:

    Open the form or component you want to work with. If necessary, switch
    to Design view of the designer. From the Data tab of the Toolbox, drag
    a DataSet object onto the designer.

    The Choose a Dataset dialog box appears. Select Typed Dataset, and
    then from the drop-down list, select the dataset you want to use, and
    then click OK.

    The drop-down list is populated with a list of all typed dataset
    classes in your project.

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

Sidebar

Related Questions

I am trying to add data to a newly created column... DataSet ds =
I created dataset that contains Table View from SqlServer 2008 database. Then I created
I've created a new project in .Net (2010 4.0) and added an SDF data
I am using the .xsd dataset thingies (which I hate) to auto-generate TableAdapter classes
I'm trying to create a DLL using a Dataset.XSD file to access my website's
Is there a utility out there that will create VB.NET classes from a Dataset.xsd
I want to be able to create the XSD file for my typed dataset
Given a DataSet, I'm left joining DataTables[1-n] onto DataTable[0]. I have created a method
I have a strongly typed DataTable created with the VS2005/VS2008 DataSet designer. The table
Here is my table in the dataset: SELECT tag_work_field.* FROM tag_work_field I created this

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.