We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

sum function within excel

hello!

what do i wrong?

I add some values to gridcells

gridcontrol(1,2).text = 500
gridcontrol(2,2).text = 700

If i export the grid to excel, i'm not able
to use the internal sumfunction of excel.
Within the excelsheet all cells are formated
as text?

any idea?

Best Regards,
Boris


2 Replies

AD Administrator Syncfusion Team March 6, 2007 08:43 PM UTC

Hi Boris,

Try setting the CellValueType property of the GridStyleInfo to System.Int32. Here is a code snippet.

gridcontrol(1,2).text = 500
gridcontrol(1,2).CellValueType = System.Type.GetType("System.Int32")
gridcontrol(2,2).text = 700
gridcontrol(2,2).CellValueType = System.Type.GetType("System.Int32")

Best Regards,
Haneef


AD Administrator Syncfusion Team March 7, 2007 08:40 AM UTC

Perfect! It works!

Thank you....

Loader.
Live Chat Icon For mobile
Up arrow icon