How to bind to a DataGrid to a collection within an object?

Mar 4, 2009 at 6:39 AM
Hi all,

I have had no success in my attempts to bind a DataGrid to a collection inside my object.  My object (MoodScale) has a few properties in it, e.g. obj MoodScale.Name, MoodScale.Id, MoodScale.Session with a collection of Categories that are also populated.  Each Category obj in the collection has similar properties.  When I first started developing this object I was not sure how I was going to display each collection of Categories by MoodScale.  It turns out that they want the Categories listed seperately with the category name prefacing the Category value.  So you might have VIGOR:NumAdj, Vigor:SumRate, RESTLESNESS:NumAdj, RESTLESNESS:SumRate, etc. all in the same DataGrid just append the Category columns to the original MoodScale DataGrid.

Any thouhgts on how to best accomplish this?