Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
Hide a grouping column
posted

Hello!

How to hide a grouping column?

Thank you.

Parents
No Data
Reply
  • 715
    Suggested Answer
    posted

    I`ve found...

     

     private void xGrid_GroupByCollectionChanged(object sender, Infragistics.Silverlight.GroupByCollectionChangedEventArgs e)
            {
                foreach (var v in e.NewGroupedColumns)
                {
                    v.Visibility = Visibility.Visible;
                }

                foreach (var v in e.PreviousGroupedColumns)
                {
                    v.Visibility = Visibility.Visible;
                }

                foreach (var col in xGrid.GroupBySettings.GroupByColumns)
                {
                    col.Visibility = Visibility.Collapsed;
                }
            }

Children
No Data