Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding mmDatagrid (Web) to a Dataset
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
Database:
MS SQL Server
Divers
Thread ID:
01026923
Message ID:
01027220
Vues:
15
Darren,

>Can someone please help me with what seems like a silly question.
>
>In the MM.NET DebGuide there is a section on Data Binding Web Controls to Alternate Data Source.
>I would like to bind a web mmDatagrid to a dataset property of a webform and i cannot seem to set the BindingSource and/or the other associated binding properties to make this happen.
>
>Could someone please post an example of what the BindingSource and BindingSourceMember should be set to when attempting to bind to a dataset in this matter.

Good to hear from you! Hope the dingoes are leaving you and yours alone <s>.

A DataSet really isn't an "alternate" type of DataSource. Are you retrieving the DataSet from a business object? If so, you can just use standard MM .NET data binding by setting the BindingSource property of the grid to the business object. Otherwise, you can use standard .NET data binding. For example:
this.MyDataGrid.DataSource = this.MyDataSet.Tables[tableName];
this.MyDataGrid.DataBind();
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform