Hi,
I wanna create a WPF treeview with data with two grouping options (radio buttons). So the data will be grouped in two different ways (2 level hierarchy), the lowest level being the actual data items, and the groups being just a way to represent the data for easier understanding. They would also be able to select items by group (checkboxes) but I got that part already figured out. E.g. if I want to represent database objects and want to have them grouped either by schema or by object type (table, view, function,...).
I just don't know how I should start on the two grouping modes. Should I entirely restructure my ObservableCollection whenever the grouping mode changes or is there a more straightforward way? Also, what if my DataTemplate for the 2-nd level would be slightly different depending on the grouping mode (e.g. if grouped by object type you need to display the schema on level 2)?
Can anyone give me some tips on how to start and which techniques to use?
Thanks