Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid from multiple tables
Message
De
18/08/2005 10:29:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
Grid from multiple tables
Versions des environnements
Environment:
C# 1.1
Database:
Jet/Access Engine
Divers
Thread ID:
01041958
Message ID:
01041958
Vues:
63
I have loaded a grid with data from a single table, and would like to know what adaptations are required to use a multi-table join.

What I have is something like this:
String query = "select * from Student order by LastName";
da = new OleDbDataAdapter(query, Cn);
ds = new DataSet();
da.Fill(ds, "Student");
this.dataGrid.DataSource = ds;
this.dataGrid.DataMember = "Student";
Data is stored in Access. I don't think I would have trouble with the JOIN (unless Access syntax is significantly different from Visual FoxPro), but:

What should I replace for "Student" in lines 4 and 6, if the query spans 2 or more tables?

TIA,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform