Class GridCellFormulaRenderer
Implements a GridCellRender that supports formulas.
Inheritance
System.Object
GridVirtualizingCellRendererBase<System.Windows.Controls.TextBox>
GridVirtualizingCellRenderer<System.Windows.Controls.TextBox>
GridCellFormulaRenderer
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellFormulaRenderer : GridCellTextBoxRenderer, IGridCellRenderer, ICellRenderer, IHitTestSelectCells, IStyleChanged, IDisposable, IAllowKeepAliveOnlyCurrentCell
Constructors
GridCellFormulaRenderer()
Initializes a new GridCellFormulaRenderer.
Declaration
public GridCellFormulaRenderer()
Methods
GetControlTextCore(GridRenderStyleInfo, Object)
Overridden to conditionally return either the style.Text property which holds the formula, or the style.FormattedText property which holds the formatted computed value.
Declaration
protected override string GetControlTextCore(GridRenderStyleInfo style, object cellValue)
Parameters
Type | Name | Description |
---|---|---|
GridRenderStyleInfo | style | The style object. |
System.Object | cellValue |
Returns
Type | Description |
---|---|
System.String | Either the formula text or the computed text depending upon the context of the call. |
Overrides
OnEditingComplete()
Declaration
protected override void OnEditingComplete()
Overrides
OnSaveChanges()
Overridden to make sure the formula is recomputed as the changes are saved.
Declaration
protected override bool OnSaveChanges()
Returns
Type | Description |
---|---|
System.Boolean | True if the changes were saved. |
Overrides
Implements
System.IDisposable