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
390
How do I bind a control to the ActiveRecord of a grid
posted

I have a xamDataGrid that is bound to an ObservableCollection of Foo1 objects.  Each Foo1 object has an ObservableCollection of Foo2 objects. 

I would like to add a second grid to display the Foo2 objects for the ActiveRecord of the Foo1 grid.  The problem I'm having is that I can't seem to convert the ActiveRecord object to a Foo1, and therefor cannot access the collection of Foo2 objects.

I'm also going to want to bind a few other controls (textboxes, combobox etc) to the ActiveRecord of the Foo2 grid. 

How do I do that?