The code I am using
'supposedly not necessary because i put the control on the form. but I tried it both with and without.
Dim calcManager As New UltraCalcManager(Me.Container) UGData.CalcManager = calcManager
' Add a summary to calculate the percentage of Value1 relative to Value2
dim band As UltraGridBand = UGData.DisplayLayout.Bands(0) Dim summary As SummarySettings = band.Summaries.Add("Percentage", SummaryType.Formula, band.Columns("curpctgain")) summary.Formula = "[curgain] / [costbasis] * 100" summary.DisplayFormat = "{0:0.00}%"
Hello Arnie,
Thank you for the post. I believe you should be getting any error that would help us to understand what is the issue here.
Looking into the document and doing some research i found this post might help you , here MikeS suggested to syntax of the formula , need to put parents to indicate it's a summary and not a column.