WPF

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

    Show / Hide Table of Contents

    Class GridCellComboBoxRenderer

    Inheritance
    System.Object
    GridCellRendererBase
    GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>
    GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>
    GridCellComboBoxRenderer
    Implements
    IGridCellRenderer
    System.IDisposable
    Inherited Members
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.TextAlignmentToHorizontalAlignment(TextAlignment)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.CurrentRendererValueChanged()
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.ShouldGridTryToHandleKeyDown(KeyEventArgs)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.OnInitializeTemplateElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.OnUpdateTemplateBinding(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.OnUpdateDisplayBinding(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.OnInitializeEditElement(DataColumnBase, ComboBox, Object)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.OnUpdateEditBinding(DataColumnBase, ComboBox, Object)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.UpdateToolTip(DataColumnBase)
    GridVirtualizingCellRenderer<ContentControl, ComboBox>.EditorType
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnPrepareUIElements(DataColumnBase, Object, Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.BeginEdit(RowColumnIndex, FrameworkElement, GridColumn, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEnteredEditMode(DataColumnBase, FrameworkElement)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.EndEdit(DataColumnBase, Object, Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditingComplete(DataColumnBase, FrameworkElement)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnloadUIElements(DataColumnBase)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnArrange(RowColumnIndex, FrameworkElement, Rect)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnMeasure(RowColumnIndex, FrameworkElement, Size)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnRenderCell(DrawingContext, Rect, DataColumnBase, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnRenderCellBorder(DrawingContext, Rect, Geometry, DataColumnBase, GridCell)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnRenderContent(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.DrawFormattedText(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, String)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.DrawGlyphs(DrawingContext, Rect, Geometry, DataColumnBase, GridCell, String)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnRenderCurrentCell(DrawingContext, Rect, Geometry, DataColumnBase, GridCell)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUpdateBindingInfo(DataColumnBase, Object, Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUpdateStyleInfo(DataColumnBase, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnCreateEditUIElement()
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnCreateDisplayUIElement()
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeEditElement(DataColumnBase, ComboBox, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeDisplayElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeTemplateElement(DataColumnBase, ContentControl, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnWireDisplayUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnwireDisplayUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnWireTemplateUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnwireTemplateUIElement(ContentControl)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnWireEditUIElement(ComboBox)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnwireEditUIElement(ComboBox)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditElementLoaded(Object, RoutedEventArgs)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditElementUnloaded(Object, RoutedEventArgs)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditElementLostFocus(Object, RoutedEventArgs)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeCellStyle(DataColumnBase, Object)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.ClearRecycleBin()
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.Dispose(Boolean)
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnCreateTemplateUIElement()
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.DisplayRecycleBin
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.EditRecycleBin
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.TemplateRecycleBin
    GridVirtualizingCellRendererBase<ContentControl, ComboBox>.AllowRecycle
    GridCellRendererBase.OnPrepareUIElements(DataColumnBase, Object, Boolean)
    GridCellRendererBase.OnPrepareUIElements()
    GridCellRendererBase.OnPreviewTextInput(TextCompositionEventArgs)
    GridCellRendererBase.CanValidate()
    GridCellRendererBase.CanUpdateBinding(GridColumn)
    GridCellRendererBase.CommitUnBoundCellValue(Object, GridColumn, Object)
    GridCellRendererBase.UpdateToolTip(DataColumnBase)
    GridCellRendererBase.OnArrange(RowColumnIndex, FrameworkElement, Rect)
    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.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.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
    public class GridCellComboBoxRenderer : GridVirtualizingCellRenderer<ContentControl, ComboBox>, IGridCellRenderer, IDisposable

    Constructors

    GridCellComboBoxRenderer()

    Initializes a new instance of the GridCellComboBoxRenderer class.

    Declaration
    public GridCellComboBoxRenderer()

    Fields

    lastKeyPressed

    Declaration
    public Key? lastKeyPressed
    Field Value
    Type Description
    System.Nullable<System.Windows.Input.Key>

    Methods

    EndEdit(DataColumnBase, Object, Boolean)

    Declaration
    public override bool EndEdit(DataColumnBase dc, object record, bool canResetBinding = false)
    Parameters
    Type Name Description
    DataColumnBase dc
    System.Object record
    System.Boolean canResetBinding
    Returns
    Type Description
    System.Boolean
    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>.EndEdit(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Object, System.Boolean)

    GetControlValue()

    Gets the control value.

    Declaration
    public override object GetControlValue()
    Returns
    Type Description
    System.Object
    Overrides
    GridCellRendererBase.GetControlValue()

    InitializeDisplayElement(DataColumnBase, ContentControl, Object)

    Declaration
    public override void InitializeDisplayElement(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.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>.InitializeDisplayElement(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.Controls.ContentControl, System.Object)

    OnCreateDisplayUIElement()

    Declaration
    protected override ContentControl OnCreateDisplayUIElement()
    Returns
    Type Description
    System.Windows.Controls.ContentControl
    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>.OnCreateDisplayUIElement()

    OnCreateEditUIElement()

    Called when [create edit unique identifier element].

    Declaration
    protected override ComboBox OnCreateEditUIElement()
    Returns
    Type Description
    System.Windows.Controls.ComboBox
    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>.OnCreateEditUIElement()

    OnEditElementLoaded(Object, RoutedEventArgs)

    Declaration
    protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender
    System.Windows.RoutedEventArgs e
    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>.OnEditElementLoaded(System.Object, System.Windows.RoutedEventArgs)

    OnEnteredEditMode(DataColumnBase, FrameworkElement)

    Declaration
    protected override void OnEnteredEditMode(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.ComboBox>.OnEnteredEditMode(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.FrameworkElement)

    OnInitializeDisplayElement(DataColumnBase, ContentControl, Object)

    Called when [initialize display element].

    Declaration
    public override void OnInitializeDisplayElement(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.ComboBox>.OnInitializeDisplayElement(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.Controls.ContentControl, System.Object)

    OnInitializeEditElement(DataColumnBase, ComboBox, Object)

    Called when [initialize edit element].

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

    DataColumn Which holds GridColumn, RowColumnIndex and GridCell

    System.Windows.Controls.ComboBox uiElement

    Corresponding Renderer Element

    System.Object dataContext

    The data context.

    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>.OnInitializeEditElement(Syncfusion.UI.Xaml.Grid.DataColumnBase, System.Windows.Controls.ComboBox, 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.ComboBox>.OnRenderContent(System.Windows.Media.DrawingContext, System.Windows.Rect, System.Windows.Media.Geometry, Syncfusion.UI.Xaml.Grid.DataColumnBase, Syncfusion.UI.Xaml.Grid.GridCell, System.Object)

    OnUnwireEditUIElement(ComboBox)

    Declaration
    protected override void OnUnwireEditUIElement(ComboBox uiElement)
    Parameters
    Type Name Description
    System.Windows.Controls.ComboBox uiElement
    Overrides
    Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase<System.Windows.Controls.ContentControl, System.Windows.Controls.ComboBox>.OnUnwireEditUIElement(System.Windows.Controls.ComboBox)

    SetControlValue(Object)

    Sets the control value.

    Declaration
    public override void SetControlValue(object value)
    Parameters
    Type Name Description
    System.Object value

    The value.

    Overrides
    GridCellRendererBase.SetControlValue(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.ComboBox>.ShouldGridTryToHandleKeyDown(System.Windows.Input.KeyEventArgs)

    Implements

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