For some reason i can not update the underlying database. Some times when i first run the app after all the controls are set up i get one viewing and one update and then i get a NOT able to COPY database or Can not Access..... This has something to do with the database not being in the debug bin folder...I am not in debug mode when this happens.
I have followed the video line for line; step by step and i am having so much trouble with this...
Here are my steps..
1. start new project
2. add database to project
3. add datagrid to form
4. assoisate grid with dataset and binding source
And this code in the behind--------
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'database1DataSet.Employees' table. You can move, or remove it, as needed.
this.employeesTableAdapter.Fill(this.database1DataSet.Employees);
}
private void button1_Click(object sender, EventArgs e)
{
this.employeesBindingSource.EndEdit();
this.employeesTableAdapter.Update(this.database1DataSet.Employees);
}
}
Please keep in mind i am just keeping this as simple as posiable so i can just get an update and find out what i am doing wrong...
I am very accustom to building my own custom types and databases; however, i can not seem to get the hang of this little easy deal
Where to look where go
thanks alot
erik
Visual Studio Express Editions24
|