Hello Nolan,
You may have runtime grouping in Flexgrid for LightSwitch by adding the desired columns in the GropDescriptions collection. Here is the code which you may write in click event of custom button:
Dispatchers.Main.BeginInvoke(() => { PagedCollectionView view = new PagedCollectionView(_flex.ItemsSource); //group the data on basis of 'Country’ column view.GroupDescriptions.Add(new PropertyGroupDescription("Country")); //reset the datasource _flex.ItemsSource = view; });
Regards