I have a DataGrid WPF that displays datasets with over 60 columns and a total of up to 10,000 rows. DataGrid quickly loads complete datasets and processes them well.
colA colB colC colD colE ... 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4
However, strings are divided into groups. I need to display the group header, which is a text string, and be able to expand / collapse the groups.
I can use grouping for a DataGrid, which looks great , but incredibly slow , to initially display large groups.
colA colB colC colD colE ... ^ group title A 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4 ^ group title B 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4
I can group myself externally in a DataGrid by adding an extra column with a description of the group in it. Then I can collapse / expand any groups by changing the dataset provided to the grid. It's very fast , but it looks like trash as it spends a lot of space, especially with long band names.
group colA colB colC colD colE ... group title A 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4 group title B 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4
What I want is the best of both worlds, i.e. quickly and beautifully , to be able to display data as if the DataGrid grouping were grouped, but for external grouping.
colA colB colC colD colE ... ^ Very long comment about the data ... 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4 ^ Another arbitrarily long comment... 1 2 3 4 5 5 6 7 8 9 2 3 4 3 4
Any idea how I can display the headings of my groups this way?
nduru source share