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
1440
Have Groupby Rows Expanded on Open
posted

When the grid is opened, the grouping is being done as expected.  The only problem is the user wants the groupings to be expanded when opened to display all rows within the first grouping.  How can I do this?

Thanks

Clay Seifert

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Clay,


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.ViewStyleBand = ViewStyleBand.OutlookGroupBy;
                e.Layout.Bands[0].SortedColumns.Add(e.Layout.Bands[0].Columns["Int32 1"], false, true);

                e.Layout.Rows[0].Expanded = true;
            }

Children