How to retain DataGrid group headers from scrolling in WPF?
问题 When a DataGrid is filled with many entries so that the vertical scrollbar appears, I don't want the DataGrid scroll viewer to hide the group headers. Instead, I want to have a ScrollBar per each group . In my case, there will always be just two (2) groups, so there will be 0-2 scrollbars. Here's a minimalistic sample code: http://www.wpftutorial.net/datagrid.html#grouping Customers = new ListCollectionView(_customers); Customers.GroupDescriptions.Add(new PropertyGroupDescription("Gender"));