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
450
Remove Count From GroupByRow
posted

Hi,

We recently upgraded to the latest version of Infragistics 10.  Our grid is now unexpectedly showing and extra count total in the group by rows underneath the normal group by description.  How can I get rid of this count row?  Please see the attached picture.  I have tried using the following properties but have not had any luck - SummaryDisplayArea, GroupBySummaryDisplayArea, GroupByRowDescriptionMask.

 

Thanks,

~Corey

  • 469350
    Offline posted

    Hi Corey,

    It looks like me like you have a Summary defined for one of the columns in your grid which displays the Count and that summary is showing up inside the GroupByRow by default.

    This feature has been in the grid for a long time, so just out of curiosity, what version did you upgrade from?

    Anyway, I know you said you already tried SummaryDisplayAreas, but my guess is that you didn't hit the right setting on it. This property is a flagged enum, so you can specify multiple areas for the summary to display. Yours probably includes InSummaryRows and you don't want it to.

    If setting SummaryDisplayAreas does not work, then my next guess would be that your setting is getting overwritten someplace else in the application. Maybe you are loading a Layout into the grid using DisplayLayout.Load or maybe you are loading a Preset. Or maybe something in your code is setting SummaryDisplayAreas after you set it.

  • 53790
    posted

    Hi

    I suggest you to use the code below with one of these possible options:


    ultraGrid1.DisplayLayout.Bands[0].Summaries[0].SummaryDisplayArea = SummaryDisplayAreas.InGroupByRows;
    or
    ultraGrid1.DisplayLayout.Bands[0].Summaries[0].SummaryDisplayArea = SummaryDisplayAreas.HideDataRowFooters;

    Please check also for which Band and which summary you apply these property.
    Regards