Nested ObservableCollection bound to DataGrid

May 5, 2009 at 12:08 AM
Is it possible to bind the datagrid to a bi-dimensional observablecollection?  What I'm trying to do is to replace the datatable construct with something that jives a little bit better with WPF.  My requirements are the following...

1.  Can add/remove columns at runtime (by writing code that works with the business object, not the datagrid directly)
2.  Can have a class represent the datacontext for each cell.

And that's it.
My initial idea was a nested observable collection, like...


but it does not seem to be binding properly?