Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding mmDatagrid (Web) to a Dataset
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01026923
Message ID:
01027220
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform