How can I format the result of the below with two decimal places for example “12.00”
With GridControl1(12, 2)
.HorizontalAlignment = GridHorizontalAlignment.Right
.CellType = "FormulaCell"
.Text = “=AVG(B1*C1/100+B2*C2/100+B3*C3/100+B4*C4/100+B5*C5/100)”
.FloatCell = False
.Enabled = False
.Clickable = False
ADAdministrator Syncfusion Team February 4, 2004 09:04 AM
you can set the style''s Format property.
.Format = "#.00"
.Format = "F2"
I am not sure AVG is doing anything for you in your formula.
JTJTFebruary 4, 2004 11:16 AM
That works just as advertised, thank you!
The formula does work for me, but I do have another question. Is there some printed material that discusses all the property settings? The user manual does not come close to covering all the property settings for the GridControl?
ADAdministrator Syncfusion Team February 4, 2004 11:24 AM
It is not printed, but you can check the Syncfusion Class reference from within Visual Studio or from the Syncfusion Developer center (found on the Start Menu) under the Syncfusion folder.
If you find a method or property in the class reference, a good source of usage information would be to search the Samples folder to see if one of our samples makes use of the property or method.