I have a windows Form application and have dropped a gridview control on the form.
When I add the data source it tests the connection OK and displays the data fine.
When I select Tables option from the Choose Your Database Obectsit says:
":
<Courses>
Could not retrieve schema information for table or view Courses.
"
and asks me if I want to continue. If I do, it shows me the tables and I select
the course table and it finishes fine. When I Preview Data its' fine. But when I the app
from within visual studio 2010 the grid is blank?
Form_Load method contains:
--------------
// TODO: This line of code loads data into the 'traincenterDataSet1.Courses' table. You can move, or remove it, as needed
this.coursesTableAdapter1.Fill(this.traincenterDataSet1.Courses);
// TODO: This line of code loads data into the 'traincenterDataSet.Courses' table. You can move, or remove it, as needed.
this.coursesTableAdapter.Fill(this.traincenterDataSet.Courses);
-------------------
I use the exact same database and table (copied to app_data) in a website project, drop the gridview
add the data source without complaints and it works just fine when I run it!?
I am using Micrsoft Access Database File with the .NET Framework Data Provider for OLEDB
for the data source.
Suggestions please?