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.
Up arrow icon