How do I connect a dataGrid to a DataSet
- by orangecl4now
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.