Professional Documents
Culture Documents
Introduction To ADO 2
Introduction To ADO 2
MS Access DB Objects
Database Table Fundamentals...
Step 1:
Create your form and rename it if
you like.
Drag DataGridView Control to the form
Use the smart tag to choose New
Data Source.
Step 2: The control will launch the Configuration wizard
Step 3: Choose New connection and browse to your .mdb file
then click next.
Step 4: Change the data source to MS Access and navigate to the
database using the browse button. Choose Yes if you want the DB
to be copied to the project folder or not.
Step 5: You can decide to copy the connection string to the
project folder in the app_config file. This is a good idea so
choose “Yes”.
Step 6: Add the table you want to use and click finish. We will
select all fields. Or you can click on the ones you want then
click “Finish”.
Step 7: You will then see the table with your data displayed. For
this project, we did not allow edit, updates, or deletes.
Step 8: Run your app. You can sort columns by clicking on a grid column.
Notice the column headers may not look too good. I will show you how to
change those so they say exactly what you want.