Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi friends,
As the question describes, I want to create a menu-based filter for a DataGridView. To achieve this hit, I need to solve the following two questions.

1 - It's is possible to bind the CollectionViewSource (grouped) to a MenuItem.ItemsSource??

2 - Can I implement the same for date type, grouping items by year, month and day (like treeview)

I already implemented converters for PropertyGroupDescription for CollectionViewSource.GroupDescriptions but I don't know how to use them to build the menu.

Maybe someone out there has solved these scenarios and you can give me links for reference o any built sample, I would appreciate any comment or solution. Thanks in advance.

What I have tried:

I've Googled a lot and implemented some things but nothing concrete or useful
Posted
Updated 3-Jun-16 2:24am
v3

1 solution

hello,
I think your question is related to this questions:
C#
Binding object within object properties into a WPF Datagrid

 
Share this answer
 
Comments
Pedro Luis Gil Mora 3-Jun-16 8:19am    
Thank you, but I already passed by that part, what I need to group items and represent it on menu items using the DataGrid.ItemsSource

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900