Articles in this section
Category / Section

How to show the formula in a cell on activating the cell in WinForms GridControl?

1 min read

Show the formula in a cell

By default, the formula will be shown in a cell even if it is in edit mode. In order to show the formula in a cell when cell is activated, the ForceEditWhenActivated property can be set as False.

C#

this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;
GridFormulaCellRenderer.ForceEditWhenActivated = false;

 

VB

Me.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell
GridFormulaCellRenderer.ForceEditWhenActivated = False

 

Screen shot

shows the formula in a cell

Samples:

C#: ActivateFormulaCell_CS

VB: ActivateFormulaCell_VB

Reference link: https://help.syncfusion.com/windowsforms/grid-control/formula-support

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied