Grouping of Entity Objects in Silverlight
I have the following DB structure and I have a hard time displaying it withi开发者_开发知识库n a Silverlight window:
Person->PersonCamp<-Camp->CampActivities<-Activity
I have a WCF RIA domain service that encapsulates all entities and the right query methods on the service.
The problem is that the UI has to display the activities by camp in the following manner:
->Camp Name:
->ActivityCheckbox(Key) + Activity Name
->ActivityCheckbox(Key) + Activity Name
->ActivityCheckbox(Key) + Activity Name
I have no clue how to bind this in a meaningful way to fit the requirements.
Any suggestions would be greatly appreciated!
Before binding create a PagedCollectionView
.
create a new PropertyGroupDescription
, specifying the name of the column you want to group by.
Add the PropertyGroupDescription
to the PagedCollectionView
and then bind the grid to the PagedCollectionView
.
精彩评论