Smack an Adodc onto your form. Click on (Custom) in it's properties. Connect it to your database:
1) Select Use Connection String, hit Build.
2) Select Microsoft Jet 4.0 OLE DB Provider, hit Next.
3) Select the database you wish to use. Hit OK.
4) Hit OK again to close this window and return to design time.
5) Select your Adodc object, in the properties window select RecordSource and click the little button.
6) Select the Command Type as "2 - adCmdTable"
7) In the "Table or Stored Procedure Name" field set the table you want to use.
Now select Project > Components, select Microsoft DataGrid Control 6.0 and hit OK. Drop a DataGrid onto your form. Now bind your DataGrid by setting it's DataSource property to your Adodc object (should be called Adodc1 if you didn't rename it).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.