Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with mmDataGrid data binding
Message
 
To
23/05/2005 16:49:31
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01016895
Message ID:
01016931
Views:
9
Andrew,

>Could someone else try this and see if they get the same problem as me? You will need a form with an mmDataGrid and a business object that contains a table and a dataview.
>
>[1] Bind a mmDataGrid to a business object's default table (set the mmDataView's BindingSource only). Compile and run the application. Make sure the mmDataTable shows the data in the business object's default table.
>
>[2] Now bind the same mmDataTable to a DataView (Set the mmDataView's BindingSource to a business object and the BindingSourceMember to a DataView like DataTableName.DataViewName). Compile and run the application, data from the dataview should show in the mmDataGrid.
>
>[3] Now here comes the kikker, if I remove the DataView from the mmDataGrid's BindingSourceMember (setting the BindingSourceMember to blank) and run the application then no data is shown (no column headers and no data). I would assume that at this point the mmDataGrid would show the data from the default table again.

Is it possible the MappiingName property of the DataGrid's TableStyle is not set properly?

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