How do I connect a dataGrid to a DataSet

Posted by orangecl4now on Stack Overflow See other posts from Stack Overflow or by orangecl4now
Published on 2010-05-12T14:08:54Z Indexed on 2010/05/12 14:34 UTC
Read the original article Hit count: 209

Filed under:
|
|
|
using System.Windows;

namespace Telephone_Directory
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            telephone2010DataSet dataSet = new telephone2010DataSet();

            telephone2010DataSetTableAdapter adapter = 
                new telephone2010DataSetTableAdapter();
        }
    }
}

The above is my code is a new project. Visual Studio 2010 complains that " the type or namespace 'telephone2010DataSetTableAdapter' could not be found."

I created a new solution. I right clicked the solution name and selected "Add Existing Item" and located my Microsoft Access DB file. I followed the wizard and it setup the necessary XSD files.

I started coding and I got this message. I did a little google-ing and I cant figure it out.

This is a WPF application created with Visual Studio 2010.

© Stack Overflow or respective owner

Related posts about c#

Related posts about dataset