Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmMoverControl Usage
Message
 
To
21/05/2004 19:24:08
Bob Thomsen
Fabtrol Systems, Inc
Eugene, Oregon, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00904909
Message ID:
00906519
Views:
15
>Any chance you could email the relevant framework code showing how the mmUsersForm uses the mmMoverControl? I am not able to get this control to work completely.

Sure...I'll send it via private e-mail.

Again, the main thing you're doing wrong here is specifying the wrong table name. DataTables in ADO.NET have a name associated with them and you need to specify this name when setting the binding properties.

You can specify a table name when retrieving data using the FillDataSet or GetDataSet command (as Jason mentioned in his reply to you).

So, if you called the GetDataSet method, you could specify a SELECT statement as the first parameter and a table name (Orders in this example) as the second parameter:

DataSet dsOrders = this.GetDataSet("SELECT * FROM Orders", "Orders");

You would then specify "MyTable1" as the table name in the binding source property

You can now fill a second data table in the same DataSet by calling the FillDataSet method passing the original DataSet (dsOrders) as the first parameter, the SELECT statement as the second parameter and the DataTable name as the third paramter:

this.FillDataSet(dsOrders, "SELECT * FROM OrderDetail", "OrderDetail");

After executing this command, the dsOrders DataSet has two DataTables in it..."Orders" and "OrderDetail". These are the names you use when setting the binding properties of UI controls.

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