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
1175
Formatting Calculated Values
posted

I create a column, set its formula and set its data type 

this.createdColumn = this.band.Columns.Add( columnName );

this.createdColumn.DataType = (Type)item.DataValue;

this.createdColumn.Formula = this.ultraTextEditorFormula.Text;

Then I call Recalc

UltraCalcManager ucm = (UltraCalcManager)this.createdColumn.Layout.Grid.CalcManager;

ucm.DeferredCalculationsEnabled = false; ucm.ReCalc();

ucm.DeferredCalculationsEnabled = true;

Now for my problem, if I set the column datatype to Int32 and create a calculation that is between 2 decimal columns, the formula results show a decimal value. Is there anyway to format the values to make them an int or to round a decimal to a certain number of decimal places?

Version 2006.1

Thank you, Jamie

Parents
No Data
Reply Children