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
4341
Grid Summary Value Changed Event
posted

Hello Team,

In a grid we have set summary for few columns. This summary we are using further for our calculations. The columns on which we have set the summary are hidden. On the Grid SummaryValueChanged event we are setting this summary values in another Grid. But for some reason the SummaryValueChanged event is not fired, but when I unhide the summary column the event is fired.

We have following queries :

1) Is there any way to get the summary value without unhiding the columns.

2) How to hide the summary row. We do not want to display the Grand total or Grand Summary row to user.

 

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    rhealsoftTakeoff said:
    1) Is there any way to get the summary value without unhiding the columns.

    I think Summaries are only calculated when they are visible for efficiency purposes. If you have a grid with thousands of rows or summaries on a child band, you don't want the grid using up processing time calculating summaries that the user can't see.

    I don't think there's any way to do this using the SummaryValueChanged event, but if you read the value of the summary, it should get calculated at that point.

    If your summary is being calculated on the root band, and not a child band, then another option might be to use a CalcManager formula. You could use a NamedReference to caculate a summary of a grid column and the you could use the NamedReferenceResultChanged event of the CalcManager to detect changes.You might need to set DeferredCalcualtionsEnabled on the CalcManager to false.

    rhealsoftTakeoff said:
    2) How to hide the summary row. We do not want to display the Grand total or Grand Summary row to user.


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.Override.SummaryFooterCaptionVisible = DefaultableBoolean.False;
            }

     

Reply Children