Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically populating a winform grid with xml
Message
De
02/04/2007 12:48:20
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
02/04/2007 10:33:07
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01211269
Message ID:
01211356
Vues:
13
>>In vfp, I can read an xml document into a cursor and display the grid in a form, with about three lines of code. How would you go about doing this in vb.net using winforms, webforms, or any other facet of dot net? Yeah, I know, I'm finally poking the bear.
>>
>>Aren't there laws against that? ;)
>>
>>Not sure how simple you need it, but let's try this one:
>>
>>
>>DataSet dsMyData = new DataSet();
>>dsMyData.ReadXml(@"c:\myxmlfile.xml", XmlReadMode.InferSchema);
>>myDataGrid.DataSource = dsMyData.Tables[0];
>>
>>myDataGrid.DataBind();   //  you'll need this for webforms
>>
>>
>>
>>Let me know if that helps, or if you need something a little more elaborate.
>
>But that's 4 lines!!!! In VFP you could do it in 3. .NET sucks!!!




LMAO. That's good....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform