Silverlight: Datagrid like grouping in ItemsControl
问题 Is it possible to group items in a ItemsControl or Listbox in Silverlight? These controls are bound to a DomainDataSource. Or are there any 3rd party controls that do this? UPDATE: This is the sort of UI I am trying to create. 回答1: You can do this by using nested ItemsControls bound to a PagedCollectionView. Say I have a datasource - MyItems - with fields: Category , Section and Option . I can create a PagedCollectionView from an IEnumerable(of MyItems) and tell it which fields to group by.