I have two xamdatagrids with same column structure and are binded with two different datatables from my viewmodel.
I am trying to achieve a scenario where if I apply Group By to any column of grid1 , the grid2 should also be grouped in a similar way.
Is there any event which I can use to achieve this ?
It is possible to achieve this functionality by using the
Groupingevent of theXamDataGridcontrol.First, define the
Groupingevent handler in the XAML:Second, add the following code for
Grid1_Grouping: