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
600
SummarySettings Formula bug?
posted
 is there anyway by which i can check before i assign the formula?

if  i do this

SummarySettings sumQty = this.grdHolding.DisplayLayout.Bands[0].Summaries.Add("sumQty", Infragistics.Win.UltraWinGrid.SummaryType.Formula, this.grdHolding.DisplayLayout.Bands[0].Columns["qty"], Infragistics.Win.UltraWinGrid.SummaryPosition.UseSummaryPositionColumn);

sumQty.Formula = "sum(if(([operation]= '+'), [qty],-[qty]))";

it shows me syntax error.

operation    qty
+               100
+               400
-                200
----------------------
                 300

why?

if possible if you can send me some sample code how i can do it. it will be helpful for me.