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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Customize DataGrid View 1
ADO Update Problem 2
Using DataGrid to data input 1
dataentry using a datagrid 1
Datagrid update 3
Getting Data from the DataGrid. 3
Can be done? 1
DataGrid won't show when i debug. 2

Back
Top