Hi
How I put dbgrid in my form ?
VB6
Printable View
Hi
How I put dbgrid in my form ?
VB6
The component is:
Microsoft data bound grid control.
You have to link it with a data control.
Data setting:
Data1.DatabaseName = App.Path & "\file.mdb"
Check the connect property for the correct database type.
Data1.RecordSource = your query or table
Data1.Refresh
To link with a dbgrid,
dbgrid1.datasource=data1
I hope this will help you