ADO and DataGrid

  • Thread starter Thread starter Tom McLaughlin
  • Start date Start date
T

Tom McLaughlin

I would like to create a small database and load it into a
dataGrid. I am having a hard time understanding this concept.
Can someone point me to a sample project on this subject.

Thanks

Tom
 
Hi Tom,

You need a connection to your database, that is a connection,
You need something to hold the data, that is a dataset
You need something to get the data from your database in the dataset, that
is the dataadatper.fill
You need a datagrid to show it the data in the dataset (the datagrid does
not hold data).
You need a connection between those two, that is the datagrid.datasource

When you have made this you have your datagrid.

Have a look for those keywords, mostly the most difficult to find are the
connection strings, those you can find here.

From all are two SQL and OledB, when you use Access it is Oledb and SQL or
MSDE it is SQL. Something as SQLclient.SQLconnection

http://www.connectionstrings.com/

http://www.able-consulting.com/ADO_Conn.htm


I hope this helps?

Cor
 
Back
Top