Hi,
I know how to create hierarchy with xamGrid. When I fill xamGrid with data, I have something like this:
Group 1
Activity 1
Activity 2
Group 2
Activity 3
Activity 4
I can do sorting, filtering and everything works fine. I would like to implement user interface where user could have two views. One would be like this one above, and the other one would be like this:
And i don’t want to reload page. Do I need two grids and then to load one or the other? Or maybe there is another way?
Thank you!
Thank you Darrell!
Group is just a parent record. I've created a hierarchy structure, but sometimes users want to see only activities.
The idea with ItemSource should do the job, and it is easy to implement.
Thanks,
- Lucky
Is "Group X" an outlook group by grouping or just a Parent record?
If it's a parent record, you would need to get an ItemSource that would just list out the Acitvities of the parents.
Once you do that you could change the ItemsSource of the current grid to be the collection of Activities rather then the list of groups. If you have AutoGenerateColumns set to true, the grid will make new columns to adjust (personally I would set the ItemSource to null first then switch to the new data)
If you have AutoGenerateColumns set to false, then you could define a ColumnLayout typed to Activity in your Xaml and then do the ItemSource switch.