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

Programmatically setting Formulas

Thread ID:





67087 Aug 8,2007 03:09 PM UTC Aug 8,2007 07:31 PM UTC WinForms 1
Tags: GridControl
Thanvir Hussain
Asked On August 8, 2007 03:09 PM UTC

How can I programmatically set formulas to a cell. I want to put a formula which will refer another cell during initialization of the grid.


Administrator [Syncfusion]
Replied On August 8, 2007 07:31 PM UTC

In a GridControl, you can use code like this to set a formula into a cell:

//make cell C4 be the sum of A1 and B1.
grid[4,3].CellType = "FormulaCell";
grid[4, 3].Text = "= A1 + B1";


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

This page will automatically be redirected to the 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