menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellTemplateRenderer - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridCellTemplateRenderer

    Represents a class that maintains the Rendering of GridTemplateColumn.

    Inheritance
    System.Object
    GridCellRendererBase
    GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>
    GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>
    GridCellTemplateRenderer
    GridCellDataTemplateRenderer
    Implements
    IGridCellRenderer
    System.IDisposable
    Inherited Members
    GridCellRendererBase.Arrange(RowColumnIndex, FrameworkElement, Rect)
    GridCellRendererBase.BeginEdit(RowColumnIndex, FrameworkElement, GridColumn, Object)
    GridCellRendererBase.BindingExpression
    GridCellRendererBase.CanUpdateBinding(GridColumn)
    GridCellRendererBase.ClearRecycleBin()
    GridCellRendererBase.CommitUnBoundCellValue(Object, GridColumn, Object)
    GridCellRendererBase.CurrentCellElement
    GridCellRendererBase.CurrentCellIndex
    GridCellRendererBase.CurrentCellRendererElement
    GridCellRendererBase.DataGrid
    GridCellRendererBase.Dispose()
    GridCellRendererBase.Dispose(Boolean)
    GridCellRendererBase.EndEdit(DataColumnBase, Object, Boolean)
    GridCellRendererBase.GetControlValue()
    GridCellRendererBase.HasCurrentCellState
    GridCellRendererBase.IGridCellRenderer.ShouldGridTryToHandleKeyDown(KeyEventArgs)
    GridCellRendererBase.IGridCellRenderer.UpdateBindingInfo(DataColumnBase, Object, Boolean)
    GridCellRendererBase.IsDropDownable
    GridCellRendererBase.IsEditable
    GridCellRendererBase.IsFocused
    GridCellRendererBase.IsFocusible
    GridCellRendererBase.IsInEditing
    GridCellRendererBase.Measure(RowColumnIndex, FrameworkElement, Size)
    GridCellRendererBase.OnMeasure(RowColumnIndex, FrameworkElement, Size)
    GridCellRendererBase.OnPrepareUIElements()
    GridCellRendererBase.OnPrepareUIElements(DataColumnBase, Object, Boolean)
    GridCellRendererBase.OnPreviewTextInput(TextCompositionEventArgs)
    GridCellRendererBase.OnRenderCell(DrawingContext, Rect, DataColumnBase, Object)
    GridCellRendererBase.OnRenderCellBorder(DrawingContext, Rect, Geometry, DataColumnBase, GridCell)
    GridCellRendererBase.OnRenderCurrentCell(DrawingContext, Rect, Geometry, DataColumnBase, GridCell)
    GridCellRendererBase.OnUnloadUIElements(DataColumnBase)
    GridCellRendererBase.OnUpdateBindingInfo(DataColumnBase, Object, Boolean)
    GridCellRendererBase.OnUpdateStyleInfo(DataColumnBase, Object)
    GridCellRendererBase.PrepareUIElements(DataColumnBase, Object, Boolean)
    GridCellRendererBase.PreviewInputText
    GridCellRendererBase.PreviewTextInput(TextCompositionEventArgs)
    GridCellRendererBase.RaiseCurrentCellValidatedEvent(SfDataGrid, GridColumn, Object, Object)
    GridCellRendererBase.RaiseCurrentCellValidatingEvent(SfDataGrid, GridColumn, Object, Object, Object)
    GridCellRendererBase.RaiseCurrentCellValueChangedEvent(SfDataGrid, DataColumnBase)
    GridCellRendererBase.RenderCell(DrawingContext, Rect, DataColumnBase, Object)
    GridCellRendererBase.ResetCurrentCellState()
    GridCellRendererBase.SetControlValue(Object)
    GridCellRendererBase.SetCurrentCellState(RowColumnIndex, FrameworkElement, Boolean, Boolean, GridColumn, DataColumnBase)
    GridCellRendererBase.SetFocus(Boolean)
    GridCellRendererBase.SetFocus(FrameworkElement, Boolean)
    GridCellRendererBase.SupportsRenderOptimization
    GridCellRendererBase.UnloadUIElements(DataColumnBase)
    GridCellRendererBase.UpdateBindingInfo(DataColumnBase, Object, Boolean)
    GridCellRendererBase.UpdateCellStyle(DataColumnBase, Object)
    GridCellRendererBase.UpdateCurrentCellState(FrameworkElement, Boolean)
    GridCellRendererBase.UpdateSource(FrameworkElement)
    GridCellRendererBase.UpdateToolTip(DataColumnBase)
    GridCellRendererBase.UseOnlyRendererElement
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.CurrentRendererValueChanged()
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.EditorType
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.OnInitializeEditElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.OnInitializeTemplateElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.OnUpdateDisplayBinding(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.OnUpdateEditBinding(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.OnUpdateTemplateBinding(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.ShouldGridTryToHandleKeyDown(KeyEventArgs)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.TextAlignmentToHorizontalAlignment(TextAlignment)
    GridVirtualizingCellRenderer<ContentControl, ContentControl>.UpdateToolTip(DataColumnBase)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.AllowRecycle
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.BeginEdit(RowColumnIndex, FrameworkElement, GridColumn, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.ClearRecycleBin()
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.DisplayRecycleBin
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.Dispose(Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.DrawFormattedText(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, String)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.DrawGlyphs(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, String)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.EditRecycleBin
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.EndEdit(DataColumnBase, Object, Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.InitializeCellStyle(DataColumnBase, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.InitializeDisplayElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.InitializeEditElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.InitializeTemplateElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnArrange(RowColumnIndex, FrameworkElement, Rect)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnCreateDisplayUIElement()
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnCreateEditUIElement()
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnCreateTemplateUIElement()
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnEditElementLoaded(Object, RoutedEventArgs)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnEditElementLostFocus(Object, RoutedEventArgs)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnEditElementUnloaded(Object, RoutedEventArgs)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnEditingComplete(DataColumnBase, FrameworkElement)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnEnteredEditMode(DataColumnBase, FrameworkElement)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnMeasure(RowColumnIndex, FrameworkElement, Size)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnPrepareUIElements(DataColumnBase, Object, Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnRenderCell(DrawingContext, Rect, DataColumnBase, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnRenderCellBorder(DrawingContext, Rect, Geometry, DataColumnBase, GridCell)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnRenderContent(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnRenderCurrentCell(DrawingContext, Rect, Geometry, DataColumnBase, GridCell)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnUnloadUIElements(DataColumnBase)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnUnwireDisplayUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnUnwireEditUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnUnwireTemplateUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnUpdateBindingInfo(DataColumnBase, Object, Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnUpdateStyleInfo(DataColumnBase, Object)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnWireDisplayUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnWireEditUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.OnWireTemplateUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ContentControl>.TemplateRecycleBin
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Grid.Cells
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class GridCellTemplateRenderer : GridVirtualizingCellRenderer<ContentControl, ContentControl>, IGridCellRenderer, IDisposable

    Constructors

    GridCellTemplateRenderer()

    Declaration
    public GridCellTemplateRenderer()

    Methods

    CanValidate()

    Determines whether the cell validation is allowed.

    Declaration
    public override bool CanValidate()
    Returns
    Type Description
    System.Boolean

    true if the cell validation is allowed; otherwise false.

    Overrides
    GridCellRendererBase.CanValidate()

    InitializeCellStyle(DataColumnBase, Object)

    Initializes the cell style.

    Declaration
    protected override void InitializeCellStyle(DataColumnBase dataColumn, object record)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    DataColumn which holds GridColumn, RowColumnIndex and GridCell.

    System.Object record

    The record.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.InitializeCellStyle(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Object)

    OnArrange(RowColumnIndex, FrameworkElement, Rect)

    Invoked when the visual children of cell is arranged in view.

    Declaration
    protected override void OnArrange(RowColumnIndex cellRowColumnIndex, FrameworkElement uiElement, Rect cellRect)
    Parameters
    Type Name Description
    RowColumnIndex cellRowColumnIndex

    The corresponding row and column index of the cell.

    System.Windows.FrameworkElement uiElement

    The corresponding UiElement that is to be arranged.

    System.Windows.Rect cellRect

    The corresponding size of cell element for arranging the UIElement.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnArrange(Syncfusion.UI.Xaml.ScrollAxis.RowColumnIndex, System.Windows.FrameworkElement, System.Windows.Rect)

    OnEditingComplete(DataColumnBase, FrameworkElement)

    Invoked when the editing is completed on the cell.

    Declaration
    protected override void OnEditingComplete(DataColumnBase dataColumn, FrameworkElement currentRendererElement)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    The corresponding column.

    System.Windows.FrameworkElement currentRendererElement

    The corresponding renderer element.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnEditingComplete(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.FrameworkElement)

    OnEnteredEditMode(DataColumnBase, FrameworkElement)

    Invoked when the cell is being entered the edit mode.

    Declaration
    protected override void OnEnteredEditMode(DataColumnBase dataColumn, FrameworkElement currentRendererElement)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    Specifies the corresponding DataColumnBase.

    System.Windows.FrameworkElement currentRendererElement

    Specifies the current renderer element.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnEnteredEditMode(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.FrameworkElement)

    OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)

    Method which initialize the display element.

    Declaration
    public override void OnInitializeDisplayElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    Specifies the corresponding DataColumnBase.

    System.Windows.Controls.ContentControl uiElement

    Specifies the corresponding renderer element

    System.Object dataContext

    Specifies the data context of the cell.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnInitializeDisplayElement(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.Controls.ContentControl, System.Object)

    OnInitializeEditElement(DataColumnBase, ContentControl, Object)

    Method which is used to initialize the renderer element bindings with corresponding column values.

    Declaration
    public override void OnInitializeEditElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    Specifies the corresponding DataColumnBase.

    System.Windows.Controls.ContentControl uiElement

    Specifies the corresponding renderer element.

    System.Object dataContext

    Specifies the data context of the cell.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnInitializeEditElement(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.Controls.ContentControl, System.Object)

    OnInitializeTemplateElement(DataColumnBase, ContentControl, Object)

    Called when initialize template element.

    Declaration
    public override void OnInitializeTemplateElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    Specifies the corresponding DataColumnBase.

    System.Windows.Controls.ContentControl uiElement

    Specifies the corresponding renderer element.

    System.Object dataContext

    Specifies the data context of the cell.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnInitializeTemplateElement(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.Controls.ContentControl, System.Object)

    OnRenderContent(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, Object)

    Declaration
    protected override void OnRenderContent(DrawingContext dc, Rect cellRect, Geometry clipGeometry, DataColumnBase dataColumnBase, GridCell gridCell, object dataContext)
    Parameters
    Type Name Description
    System.Windows.Media.DrawingContext dc
    System.Windows.Rect cellRect
    System.Windows.Media.Geometry clipGeometry
    DataColumnBase dataColumnBase
    GridCell gridCell
    System.Object dataContext
    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnRenderContent(System.Windows.Media.DrawingContext, System.Windows.Rect, System.Windows.Media.Geometry, Syncfusion.UI.Xaml.Grid.DataColumnBase, Syncfusion.UI.Xaml.Grid.GridCell, System.Object)

    OnUnwireDisplayUIElement(ContentControl)

    Called when unwire display unique identifier element.

    Declaration
    protected override void OnUnwireDisplayUIElement(ContentControl uiElement)
    Parameters
    Type Name Description
    System.Windows.Controls.ContentControl uiElement

    The unique identifier element.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnUnwireDisplayUIElement(System.Windows.Controls.ContentControl)

    OnUnwireEditUIElement(ContentControl)

    Called when unwire edit unique identifier element.

    Declaration
    protected override void OnUnwireEditUIElement(ContentControl uiElement)
    Parameters
    Type Name Description
    System.Windows.Controls.ContentControl uiElement

    The unique identifier element.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnUnwireEditUIElement(System.Windows.Controls.ContentControl)

    OnUpdateEditBinding(DataColumnBase, ContentControl, Object)

    Updates the binding for editor control for the specified column.

    Declaration
    public override void OnUpdateEditBinding(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    Specifies the corresponding DataColumnBase.

    System.Windows.Controls.ContentControl uiElement

    Specifies the corresponding renderer element.

    System.Object dataContext

    Specifies the dataContext of the cell.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnUpdateEditBinding(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.Controls.ContentControl, System.Object)

    ShouldGridTryToHandleKeyDown(KeyEventArgs)

    Handles the key interaction with editor of corresponding column.

    Declaration
    protected override bool ShouldGridTryToHandleKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    The System.Windows.Input.KeyEventArgs instance containing the event data.

    Returns
    Type Description
    System.Boolean

    Returns true if the parent grid should be allowed to handle keys; otherwise false.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.ShouldGridTryToHandleKeyDown(System.Windows.Input.KeyEventArgs)

    Implements

    IGridCellRenderer
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved