Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Business object for WPF data grid
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement