Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fill a datagrid
Message
De
23/08/2005 22:05:34
 
 
À
22/08/2005 16:45:00
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
01042755
Message ID:
01043141
Vues:
18
Hi..

If you're using ADO DataControl then what you only have to do is:
to set the datagrid's datasource to ADODC.


If you're using recordset then what you only have to do is:
to set the datagrid's datasource to the recordset.
ie.
set datagrid1.datasource=yourrecordset

==

Dim mSQL as string
mSQL="SELECT * FROM EMPLOYEE ORDER BY EMPID"
rsEmp.open mSQL, adOpenKeyset, adLockReadOnly
rsemp.MoveFirst
set datagrid1.datasource=rsEmp

HTH
Winanjaya
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform