Click to See Complete Forum and Search --> : Datagrid
zenobe03
May 8th, 2001, 09:22 AM
Hello,
I've a little prob... I have created a Datagrid but I can't link it with a Database ( from access )
Thanx!
zenobe03
Iouri
May 8th, 2001, 09:31 AM
Go to the properties of the databound grid and enter the name of the data control (which is bound to database)
Iouri Boutchkine
iouri@hotsheet.com
zenobe03
May 8th, 2001, 10:12 AM
Thanx, but I don't really understand... I have to link a datacontrol with my database, But I don't even can do that. In the properties it's written:
DataMember: Empty
DataSource: < Not bound to a DataSource >
THANX
zenobe03
W P Hames
May 8th, 2001, 11:11 AM
You need a data connection first. An easy way to get connected is use ADODC. In your project, select the "project" pull-down menu, select "references". Place a check by the Microsoft ADO Data Control. Now when you close that, you'll have the ADODC control in your tool bar. Place an ADODC control on your form, and edit the properties (right click on the control to select "properties") accordingly to connect to your database. Now, select your datagrid. In the properties box, select the datasource. Adodc1 should be there to select. Does that make it any clearer?
Patrick
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.