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
1330
Groups
posted

Is there a way to group rows in the grid?

Look at the attached picture and i want to group by 'Key Performance Indicators' and 'Returns on Funds Invested - Equity'

Parents
  • 469350
    Offline posted

    Hi,

    Yes, you are looking for the OutlookGroupBy feature in the grid.


         
            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridBand band = layout.Bands[0];

                layout.ViewStyleBand = ViewStyleBand.OutlookGroupBy;           
                band.SortedColumns.Add("Int32 1", false, true);

                // Optional. Only do this if you don't want the users to be able to change
                // the grouping
                layout.GroupByBox.Hidden = true;
            }

Reply Children