Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: Runtime grouping?

$
0
0

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


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>