Quantcast
Channel: Grouping of items in ListView WPF
Viewing all articles
Browse latest Browse all 5

Grouping of items in ListView WPF

$
0
0

Thanks a ton for the detailed answer Magnus. I will try it out and update the post.

Just one question, if I assign cvs as the item source of the list view, would it be able to bind it fine? Or do I have to use ItemsPath property of the collectionviewsource?

Also, 

>>Only by adding an empty ClassA object to the CollectionOfClassA source collection for each "blank" date. There is no way to display property values from object that don't exist.

Actually, I wanted to show the group header for all the dates, if there is no item for say 6/6/2016, then it would just show the group (as 6/6/2016) but under that group I wanted to show "No Items". Is it not possible? If showing "No Items" is not possible, I am fine just showing the group also (without showing anything under that group).

I found this https://msdn.microsoft.com/en-us/library/system.windows.controls.groupstyle.hidesifempty(v=vs.110).aspx I am not sure if this is something useful for my requirement but I will give it a try.



Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>