Nested Groups Over a single property in ListCollectionView
-
Friday, February 24, 2012 4:24 PM
I have an object which have a string property containing \ character inside like a file path. And a want using a ListCollectionView to generate nested groups for all strings inside my property.
e.g.
Department\Human Resources\Ioan Toader the Department Group will contain Human Resources which contain the item Ioan Toader
Is possible to archive something like that with ListCollectionView grouping.
My property contains a variable numbers of items separated with \
Thanks for your help
All Replies
-
Saturday, February 25, 2012 5:03 AM
Hi
if you want groups and subgroup and all then Karl shifflett has given a vary nice example on this link
Thanks
Mayank
-
Sunday, February 26, 2012 3:49 PM
My problem is I have one property which has to be split by / character and the depth of hierarchy is not the same in all groups.
-
Monday, February 27, 2012 3:14 AMModerator
Hi Ioan Toader,
I think there is no direct method to split your string property by ListCollectionView, you could try to split it by code, and then group then, there is a sample code block about how to split string, refer to below link:
http://social.msdn.microsoft.com/forums/en-us/wpf/thread/ABBDB0C5-5088-4AF9-960A-ABD0C369C9D5
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by Sheldon _XiaoModerator Thursday, March 08, 2012 10:10 AM
-
Thursday, March 08, 2012 10:10 AMModerator
Hi Ioan Toader,
I am marking your issue as "Answered", if you have new findings about your issue, please let me know.
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

