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
500
Group with sub-totals but dont hide columns
posted

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 

 

 

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children