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}%"