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'
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; }
Is there anyway i can sort the groups. In the example below i enter the data in this order and this is the order i want it to sort on the grid
1. Introduction 2.Key Metrics 3. Revenues 4. Costs
This is how is does sort