c# - Allowing to select only from one group in wpf datagrid row -


I have a WPF Datagrid that uses a grouping, I want several rows to select, but I want that user Be able to choose from only one group. They should not be able to select from different groups at the same time.

If users select some items from a group, they should be able to right-click on that line, a context menu opens with "do something" and should run a loop Implemented the function for

This Datagrid has a group style that uses a control template that shows an expander and shows in an object presenter's content.

Can you tell me what can I do? Thank you.


Comments