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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

sum function within excel

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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


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,
Haneef

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

Perfect! It works!

Thank you....

CONFIRMATION

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.

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

;