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

Parents
No Data
Reply
  • 7555
    Offline posted

    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.

Children
No Data