Hi all,
I need help getting what my customer wish.
I currently have this grid:
But the customer want this:
Witch means I cant group and hide the columns.
Here's my code:
UltraGrid1.DisplayLayout.Bands(0).Summaries.Add("Qtd.", Infragistics.Win.UltraWinGrid.SummaryType.Sum, UltraGrid1.DisplayLayout.Bands(0).Columns("Qtd."))
UltraGrid1.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy
UltraGrid1.DisplayLayout.GroupByBox.Hidden = True
UltraGrid1.DisplayLayout.Bands(0).SortedColumns.Add("Serviço", False, True)
UltraGrid1.DisplayLayout.Bands(0).SortedColumns.Add("Familia", False, True)
UltraGrid1.DisplayLayout.Bands(0).Override.SummaryDisplayArea = Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.Bottom Or Infragistics.Win.UltraWinGrid.SummaryDisplayAreas.GroupByRowsFooter
Thank you so much!Hugo
Hi,
I'm not really sure what your requirement are here. It seems like you could get something close to this by using CellMerging. Check out the AllowCellMerging property on the Override object.
Another option you might consider is simply not hiding the GroupBy columns. There's a property on the column called HiddenWhenGroupBy, which you could set to False and then when you grouped by that column, you would still see the column under the group.
Sorry, I dont understand what I would get CellMerging enable. Dont want to merge "Serviço" and "Familia".
With HiddenWhenGroupBy = false I get very close!
I just need to remove those lines of heading in red:
Thank you!
You cannot remove the GroupByRows and still show the child rows.
Turning on cell merging and simply sorting those two columns instead of grouping them would give you something similar to your original screen shots.
Instead of having the cell display only once at the top and then having empty space below it, you would get one big cell that spans across all of the rows.