Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business object for WPF data grid
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Business object for WPF data grid
Divers
Thread ID:
01412628
Message ID:
01412628
Vues:
121
I am unable to instantiate a business object for a WPF form that contains a data grid (from the codeplex wpf toolkit).
I have a business object, Widgets with a WidgetsEntity. I also have a shaped entity, MyWidgets which has only some of the fields from the WidgetsEntity.

I have bound the grid to the MyWidgets entity (following the lead of the Data Binding WPF Controls ListView example) Most of those instructions work ok also for the data grid.

Now I come to step 11: instantiating a business object. And here is where I get lost.
I have registered the Widgets class as the PrimaryBizObject.

What do I need to do to set the ItemsSource of the DataGrid to the rows returned by my stored procedure "GetMyWidgetsByType" ?

If I try to write a method that returns a mmBindingList type, the compiler doesn't recognize that type..
What do I need to create in order for the binding to the data grid to work?

Trying, slowly, to get my head around WPF and MM.. and winding up with a bit of a headache in the process..

Thanks,
Ilmar
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform