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
0
using formulas in ultrawingrid. I have followed the instructions i see, i get no error message, but nothing displays
posted

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