Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding to the Entity object?
Message
From
24/01/2007 13:05:57
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01188431
Message ID:
01188833
Views:
19
Thanks, Kevin. I'll try that out right away.

...Jim

>
>We are in the process of updating our documentation to demonstrate this, but you can use the new Visual Studio 2005 data binding tools to do this. For example, you can add a new Data Source to the Data Source window (from the VS main menu, select Data | Add New Data Source. In the Data Source Configuration Wizard you can select Object, click Next. You can then select one of your entity objects, click Next, then click Finish. This adds your entity object to the Data Sources window.
>
>Now you can drag and drop the entity object from the Data Sources window onto a Windows Form and it uses the new Windows Forms 2.0 data binding model. But, BEFORE doing this, you should change your Visual Studio settings so that it adds MM .NET user interface controls to your form rather than regular .NET controls. To do this, select Tools | Options from the VS menu and select Windows Forms Designer | Data UI Customization. You can then specify to use MM .NET UI controls by default for each data type.
>
>By default when dragging and dropping your entity object from the Data Source window, VS adds a grid to your form. If you select to Details in the combo box for your entity object in the Data Source window it drops individual controls on your web form for each entity property. Afterwards, you still need to set the BindingSource property of your user interface control to the associated MM .NET business object so all the underlying MM .NET behavior kicks in.
>
>Best Regards,
Previous
Reply
Map
View

Click here to load this message in the networking platform