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
120
Entity Framework: Can't bind results from ObjectStateManager to UltraWinGrid
posted

I have two tables.  One that is a parent and the other that is a child.  When a user clicks a row in the parent table, it sets the datasource for the child table to the associated children for that row.  This is set up with Entity Framework with an ObjectContext.  It works just great for existing data.

If I add a new row to the child table and populate it with values, it appears to work fine, but when I click on a different row in the parent table and then on the same parent row again, it doesn't show the child row I just created.  

Do I specifically need to attach the child object to the ObjectContext when it is first created?

Parents
No Data
Reply
  • 120
    posted

    The thing that I'm having the biggest problem with is binding the grid's data source to an object of type IEnumerable<T>.  It doesn't complain, but it also doesn't show the columns or any of the rows.  Do I need to handle results of this type in a special way to get them to bind correctly to the grid?

Children