Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Populating UltraWinGrid Using Entity Framework Stored Procedure
posted

This would seem to be fairly straight forward but I'm stumped.

I'm familiar with using a dataset/datatable to bind to a grid.  However, I'm new to Entity Framework.

Can you provide a short example of how I would call a stored procedure

MyContext.uspGetClientByID(47)

And somehow get that into the grid properly?

mygrid.datasource = mycontext.uspGetClientByID(47) throws an exception of course as it is not returning a dataset by design.

Thank you!

Parents
No Data
Reply
  • 225
    Offline posted

    Wow! I just needed to take a walk.  After spending a couple hours trying to resolve the issue, I took a break and came back to it.

    Incidentally, I was missing .ToList in the above example for anyone else having the same issue.

Children