WPF

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

    Show / Hide Table of Contents

    Class GridCellTemplateRenderer

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

    Constructors

    GridCellTemplateRenderer()

    Declaration
    public GridCellTemplateRenderer()

    Methods

    CanValidate()

    Declaration
    public override bool CanValidate()
    Returns
    Type Description
    System.Boolean
    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)

    Set focus to UIElement loaded in DataTemplate of GridCell on loading. since OnEditElementloaded will not fire for GridCell again when start editing.

    Declaration
    protected override void OnArrange(RowColumnIndex cellRowColumnIndex, FrameworkElement uiElement, Rect cellRect)
    Parameters
    Type Name Description
    RowColumnIndex cellRowColumnIndex
    System.Windows.FrameworkElement uiElement
    System.Windows.Rect cellRect
    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)

    Declaration
    protected override void OnEditingComplete(DataColumnBase dataColumn, FrameworkElement currentRendererElement)
    Parameters
    Type Name Description
    DataColumnBase dataColumn
    System.Windows.FrameworkElement currentRendererElement
    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)

    Called when [entered edit mode].

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

    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 overridden to avoid binding for a content cntrol when cell template is not defined.

    Declaration
    public override void OnInitializeDisplayElement(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
    Parameters
    Type Name Description
    DataColumnBase dataColumn
    System.Windows.Controls.ContentControl uiElement
    System.Object dataContext
    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)

    Called when [initialize edit element].

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

    DataColumn which holds GridColumn, RowColumnIndex and GridCell

    System.Windows.Controls.ContentControl uiElement

    Corresponding Renderer Element

    System.Object dataContext

    The data context.

    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 display element].

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

    DataColumn which holds GridColumn, RowColumnIndex and GridCell

    System.Windows.Controls.ContentControl uiElement

    Corresponding Renderer Element

    System.Object dataContext

    The data context.

    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)

    Declaration
    public override void OnUpdateEditBinding(DataColumnBase dataColumn, ContentControl uiElement, object dataContext)
    Parameters
    Type Name Description
    DataColumnBase dataColumn
    System.Windows.Controls.ContentControl uiElement
    System.Object dataContext
    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)

    Let Renderer decide whether the parent grid should be allowed to handle keys and prevent the key event from being handled by the visual UIElement for this renderer. If this method returns true the parent grid will handle arrow keys and set the Handled flag in the event data. Keys that the grid does not handle will be ignored and be routed to the UIElement for this renderer.

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

    A System.Windows.Input.KeyEventArgs object.

    Returns
    Type Description
    System.Boolean

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

    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 - 2021 Syncfusion Inc. All Rights Reserved