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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

sum function within excel

Thread ID:





57548 Mar 6,2007 03:20 PM UTC Mar 7,2007 08:40 AM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On March 6, 2007 03:20 PM UTC


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,

Administrator [Syncfusion]
Replied On 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,

Administrator [Syncfusion]
Replied On March 7, 2007 08:40 AM UTC

Perfect! It works!

Thank you....


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon