Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Binding at runtime
Message
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 4.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01516502
Message ID:
01516932
Vues:
69
>>After getting the data from a business object that does the SELECT, I need to be able to bind the DataSet to a DataGridView. My book shows this statement to be the way to bind it:
>>
>>this.grdOrders.SetDataBinding(dsOrders, OrderObj.TableName);
>>
>>I don't see that the object grdOrders has a property call SetDataBinding, so how does this work?
>>
>>The book, in case you were wondering is : ".Net for Visual FoxPro Developers"
>>
>>Thanks for any help or suggestions.
>
>What class is grdOrders ?
>
>If System.Windows.Forms.DataGrid then :
>http://msdn.microsoft.com/en-us/library/system.windows.forms.datagrid.setdatabinding.aspx
I'm using The Mere Mortals Framework so the binding is a bit different but you should just be able to set the DataSource property in the Properties window to the desired dataset and tablename (if it's not the default).
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform