menu

WPF

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

    Show / Hide Table of Contents

    Class GridUnBoundCellTemplateRenderer

    Represents a class that maintains the rendering of unbound columns of SfDataGrid.

    Inheritance
    System.Object
    GridCellRendererBase
    GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>
    GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>
    GridUnBoundCellTemplateRenderer
    Implements
    IGridCellRenderer
    System.IDisposable
    Inherited Members
    GridCellRendererBase.Arrange(RowColumnIndex, FrameworkElement, Rect)
    GridCellRendererBase.BeginEdit(RowColumnIndex, FrameworkElement, GridColumn, Object)
    GridCellRendererBase.BindingExpression
    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.OnRenderContent(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, Object)
    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 GridUnBoundCellTemplateRenderer : GridVirtualizingCellRenderer<ContentControl, ContentControl>, IGridCellRenderer, IDisposable

    Constructors

    GridUnBoundCellTemplateRenderer()

    Declaration
    public GridUnBoundCellTemplateRenderer()

    Methods

    CanUpdateBinding(GridColumn)

    Determines whether the binding for the column can be updated.Implement this method to update binding on particular renderer whether the data context is set.

    Declaration
    public override bool CanUpdateBinding(GridColumn column)
    Parameters
    Type Name Description
    GridColumn column

    Specifies the corresponding GridColumn.

    Returns
    Type Description
    System.Boolean

    True if the binding is updated for the column; otherwise false.

    Overrides
    GridCellRendererBase.CanUpdateBinding(GridColumn)

    CanValidate()

    Determines whether the cell validation is allowed. Implement this method to allow cell validation in particular renderer.

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

    Returns true if the cell validation is allowed; otherwise false.

    Overrides
    GridCellRendererBase.CanValidate()

    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

    Specifies the corresponding row and column index of the cell.

    System.Windows.FrameworkElement uiElement

    Specifies the corresponding UiElement that is to be arranged.

    System.Windows.Rect cellRect

    Specifies 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

    Specifies the corresponding DataColumnBase.

    System.Windows.FrameworkElement currentRendererElement

    Specifies 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)

    OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)

    Initializes the display element of the cell in column.

    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 UIElement.

    System.Object dataContext

    Specifies the dataContext 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 initialize the element with respect to corresponding UnBound value.

    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 dataContext.

    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)

    Initializes the binding for the Grid cell by column's cellTemplate and CellTemplateSelector.

    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 UIElement.

    System.Object dataContext

    Specifies the dataContext 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)

    OnUpdateTemplateBinding(DataColumnBase, ContentControl, Object)

    Update the binding for the Grid cell by column's cellTemplate and CellTemplateSelector.

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

    Specifies the corresponding DataColumnBase.

    System.Windows.Controls.ContentControl uiElement

    Specifies the corresponding UIElement.

    System.Object dataContext

    Specifies the dataContext of the cell.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ContentControl>.OnUpdateTemplateBinding(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