Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business object for WPF data grid
Message
From
15/07/2009 20:18:31
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01412628
Message ID:
01412633
Views:
54
>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

It has been awhile since I worked through the WPF stuff to figure it out and I haven't been using it much. I wonder if you had looked at the Dev Guide section "Creating Windows Presentation Foundation Applications | Data Binding WPF Controls" or the Working with Data Grids right under that heading.

Can you show the method you are talking about which the compiler doesn't like?
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform