WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridUITypeEditorCellRenderer

    Show / Hide Table of Contents

    Class GridUITypeEditorCellRenderer

    Defines the renderer part of a drop-down with a ListControl-like grid or a UITypeEditor that display choices for a cell determined through the System.ComponentModel.TypeConverter.GetStandardValues method of a System.ComponentModel.TypeConverter.

    Inheritance
    System.Object
    NonFinalizeDisposable
    GridCellRendererBase
    GridStaticCellRenderer
    GridTextBoxCellRenderer
    GridDropDownCellRenderer
    GridDropDownGridListControlCellRenderer
    GridDropDownStandardValuesCellRenderer
    GridUITypeEditorCellRenderer
    Implements
    IQueryFocusInside
    IGridDropDownCell
    IPopupParent
    IPopupItem
    System.IDisposable
    System.Windows.Forms.Design.IWindowsFormsEditorService
    System.IServiceProvider
    Inherited Members
    GridDropDownStandardValuesCellRenderer.GetDefaultMaxSize()
    GridDropDownStandardValuesCellRenderer.OnEnsureListControlPart()
    GridDropDownStandardValuesCellRenderer.CreateListControlPart()
    GridDropDownStandardValuesCellRenderer.ValidateString(String)
    GridDropDownGridListControlCellRenderer.ResetListControlPart()
    GridDropDownGridListControlCellRenderer.OnRejectChanges()
    GridDropDownGridListControlCellRenderer.OnSetControlText(String)
    GridDropDownGridListControlCellRenderer.OnKeyPress(KeyPressEventArgs)
    GridDropDownGridListControlCellRenderer.TextBoxChanged(Object, EventArgs)
    GridDropDownGridListControlCellRenderer.ProcessMouseWheel(MouseEventArgs)
    GridDropDownGridListControlCellRenderer.InitializeDropDownContainer()
    GridDropDownGridListControlCellRenderer.ListControlMouseUp(Object, MouseEventArgs)
    GridDropDownGridListControlCellRenderer.ListControlScroll(Object, ScrollEventArgs)
    GridDropDownGridListControlCellRenderer.ListControlGotFocus(Object, EventArgs)
    GridDropDownGridListControlCellRenderer.OnKeyDown(KeyEventArgs)
    GridDropDownGridListControlCellRenderer.SynchronizeDisplayText(Int32)
    GridDropDownGridListControlCellRenderer.FindItem(String, Boolean, Int32, Boolean)
    GridDropDownGridListControlCellRenderer.FindItemExact(String, Boolean, Int32, Boolean)
    GridDropDownGridListControlCellRenderer.OnEditPartMouseDown(Object, MouseEventArgs)
    GridDropDownGridListControlCellRenderer.OnClick(Int32, Int32, MouseEventArgs)
    GridDropDownGridListControlCellRenderer.OnDeactivating()
    GridDropDownGridListControlCellRenderer.OnControlDoubleClick(Control)
    GridDropDownGridListControlCellRenderer.OnDoubleClick(Int32, Int32, MouseEventArgs)
    GridDropDownGridListControlCellRenderer.ListControlPart
    GridDropDownCellRenderer.CreateTextBox()
    GridDropDownCellRenderer.TextBoxGotFocus(Object, EventArgs)
    GridDropDownCellRenderer.EditPart
    GridDropDownCellRenderer.PopupControlContainer
    GridDropDownCellRenderer.DropDownContainer
    GridTextBoxCellRenderer.GetEditState()
    GridTextBoxCellRenderer.SetEditState(Object)
    GridTextBoxCellRenderer.WireModel(GridCellModelBase)
    GridTextBoxCellRenderer.UnwireModel(GridCellModelBase)
    GridTextBoxCellRenderer.ControlLostFocus(Object, EventArgs)
    GridTextBoxCellRenderer.ControlGotFocus(Object, EventArgs)
    GridTextBoxCellRenderer.TextBoxLostFocus(Object, EventArgs)
    GridTextBoxCellRenderer.ModelUpdateActiveText()
    GridTextBoxCellRenderer.SetModelActiveText(String)
    GridTextBoxCellRenderer.GetSelectedText(String)
    GridTextBoxCellRenderer.ReplaceSel(String)
    GridTextBoxCellRenderer.OnHasFocusControlChanged()
    GridTextBoxCellRenderer.SetTextBoxText(String, Boolean)
    GridTextBoxCellRenderer.SetSelectedText(String, Boolean)
    GridTextBoxCellRenderer.CanCopy()
    GridTextBoxCellRenderer.Copy()
    GridTextBoxCellRenderer.Paste()
    GridTextBoxCellRenderer.CanPaste()
    GridTextBoxCellRenderer.CanCut()
    GridTextBoxCellRenderer.Cut()
    GridTextBoxCellRenderer.WantsAutoSize
    GridTextBoxCellRenderer.LimitTextLength
    GridTextBoxCellRenderer.TextBoxControl
    GridTextBoxCellRenderer.InTextBoxChanged
    GridTextBoxCellRenderer.TextBox
    GridTextBoxCellRenderer.IgnoreTextBoxChanged
    GridTextBoxCellRenderer.InNotifyCurrentCellChangedException
    GridTextBoxCellRenderer.InSetTextBoxTextCore
    GridTextBoxCellRenderer.TextBoxTextCore
    GridTextBoxCellRenderer.TextBoxText
    GridTextBoxCellRenderer.DisableTextBox
    GridStaticCellRenderer.RemoveMargins(Rectangle, GridStyleInfo)
    GridStaticCellRenderer.DrawImage(Graphics, ImageList, Int32, Rectangle, Boolean)
    GridStaticCellRenderer.DrawImage(Graphics, ImageList, Int32, Rectangle, Rectangle, Boolean)
    GridStaticCellRenderer.DrawImage(Graphics, ImageList, Int32, Rectangle)
    GridStaticCellRenderer.DrawText(Graphics, String, Font, Rectangle, GridStyleInfo, Color, Boolean)
    GridStaticCellRenderer.DrawText(Graphics, String, Font, Rectangle, GridStyleInfo, Color, Boolean, Boolean)
    GridStaticCellRenderer.GetRotatedTextBound(String, Font, StringFormat, Single, Single)
    GridStaticCellRenderer.DrawRotatedString(Graphics, String, Font, Brush, RectangleF, StringFormat, Single, GridStyleInfo)
    GridStaticCellRenderer.DrawText(Graphics, String, Font, Rectangle, GridStyleInfo, Color)
    GridStaticCellRenderer.IsPointOverImage(Int32, Int32, Point)
    GridCellRendererBase.Dispose()
    GridCellRendererBase.ToString()
    GridCellRendererBase.OnDeleting()
    GridCellRendererBase.OnModelChanged(EventArgs)
    GridCellRendererBase.OnBeginEdit()
    GridCellRendererBase.OnEndEdit()
    GridCellRendererBase.QueryFocusInside()
    GridCellRendererBase.OnSaveChanges()
    GridCellRendererBase.OnStartEditing()
    GridCellRendererBase.OnEditingComplete()
    GridCellRendererBase.OnValidate()
    GridCellRendererBase.OnValidated()
    GridCellRendererBase.OnActivating(Int32, Int32)
    GridCellRendererBase.OnActivated()
    GridCellRendererBase.ShouldDrawEditing(Int32, Int32)
    GridCellRendererBase.ShouldDrawFocused(Int32, Int32)
    GridCellRendererBase.NotifyCurrentCellChanging()
    GridCellRendererBase.NotifyCurrentCellControlDoubleClick(Control)
    GridCellRendererBase.ControlDoubleClick(Object, EventArgs)
    GridCellRendererBase.NotifyCurrentCellControlGotFocus(Control)
    GridCellRendererBase.NotifyCurrentCellControlLostFocus(Control)
    GridCellRendererBase.OnCloseDropDown(PopupCloseType)
    GridCellRendererBase.OnOutlineCurrentCell(Graphics, Rectangle)
    GridCellRendererBase.OnCellLayoutChanged()
    GridCellRendererBase.OnGridGotFocus(EventArgs)
    GridCellRendererBase.ResetCellLayout()
    GridCellRendererBase.GetCellBoundsCore(Int32, Int32)
    GridCellRendererBase.GetCellBoundsCore(Int32, Int32, Boolean)
    GridCellRendererBase.GetCellBoundsCoreInt(Int32, Int32, Boolean)
    GridCellRendererBase.GetCellLayout(Int32, Int32, GridStyleInfo)
    GridCellRendererBase.GetCellClientRectangle(Int32, Int32, GridStyleInfo, Boolean)
    GridCellRendererBase.PerformLayout(Int32, Int32)
    GridCellRendererBase.PerformLayout(Int32, Int32, GridStyleInfo)
    GridCellRendererBase.PerformLayout(Int32, Int32, GridStyleInfo, Rectangle)
    GridCellRendererBase.OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
    GridCellRendererBase.DrawSingleCell(Graphics, Rectangle, Int32, Int32, GridStyleInfo, Boolean)
    GridCellRendererBase.OnDrawCellButton(GridCellButton, Graphics, Int32, Int32, Boolean, GridStyleInfo)
    GridCellRendererBase.OnDrawCellButtonBackground(GridCellButton, Graphics, Rectangle, ButtonState, GridStyleInfo)
    GridCellRendererBase.OnQueryShowButtons(Int32, Int32, GridStyleInfo)
    GridCellRendererBase.AddButton(GridCellButton)
    GridCellRendererBase.RemoveButton(GridCellButton)
    GridCellRendererBase.GetButton(Int32)
    GridCellRendererBase.DrawBackground(Graphics, Rectangle, GridStyleInfo, Boolean)
    GridCellRendererBase.OnDrawCellBackground(GridDrawCellBackgroundEventArgs)
    GridCellRendererBase.DrawCellAppearance(Graphics, Rectangle, GridStyleInfo)
    GridCellRendererBase.GetMarkHeaderState(Int32, Int32, GridStyleInfo)
    GridCellRendererBase.SetControl(Control)
    GridCellRendererBase.ResetControlText()
    GridCellRendererBase.UpdateControlValue()
    GridCellRendererBase.SetControlValue(Object, Boolean)
    GridCellRendererBase.InitializeControlText(Object)
    GridCellRendererBase.ResetControlValue()
    GridCellRendererBase.GetDisplayText()
    GridCellRendererBase.GetCellValue()
    GridCellRendererBase.Initialize(Int32, Int32)
    GridCellRendererBase.InitializedAt(Int32, Int32)
    GridCellRendererBase.InitalizedAt(Int32, Int32)
    GridCellRendererBase.Hide()
    GridCellRendererBase.IsControlVisible()
    GridCellRendererBase.RaiseProcessKeyEventArgs(Message)
    GridCellRendererBase.ProcessKeyEventArgs(Message)
    GridCellRendererBase.OnKeyUp(KeyEventArgs)
    GridCellRendererBase.FindText(String, Int32, Int32, GridFindTextOptions, Boolean)
    GridCellRendererBase.GetCellText(GridStyleInfo, GridFindTextOptions)
    GridCellRendererBase.ReplaceText(String, String, Int32, Int32, GridFindTextOptions, Boolean)
    GridCellRendererBase.OnNotifyMsg(Message)
    GridCellRendererBase.IsReadOnly()
    GridCellRendererBase.RaiseHitTest(Int32, Int32, MouseEventArgs, IMouseController)
    GridCellRendererBase.OnHitTest(Int32, Int32, MouseEventArgs, IMouseController)
    GridCellRendererBase.RaiseGetCursor(Int32, Int32)
    GridCellRendererBase.OnGetCursor(Int32, Int32)
    GridCellRendererBase.RaiseMouseHoverEnter(Int32, Int32)
    GridCellRendererBase.OnMouseHoverEnter(Int32, Int32)
    GridCellRendererBase.RaiseMouseHover(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.OnMouseHover(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.RaiseMouseHoverLeave(Int32, Int32, EventArgs)
    GridCellRendererBase.OnMouseHoverLeave(Int32, Int32, EventArgs)
    GridCellRendererBase.RaiseMouseDown(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.OnMouseDown(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.ControlMouseDown(Object, MouseEventArgs)
    GridCellRendererBase.RaiseMouseMove(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.OnMouseMove(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.RaiseMouseUp(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.OnMouseUp(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.RaiseCancelMode(Int32, Int32)
    GridCellRendererBase.OnCancelMode(Int32, Int32)
    GridCellRendererBase.RaiseClick(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.RaiseDoubleClick(Int32, Int32, MouseEventArgs)
    GridCellRendererBase.OnButtonClicked(Int32, Int32, Int32)
    GridCellRendererBase.CreateDropDownContainer()
    GridCellRendererBase.EnsureDropDownContainer()
    GridCellRendererBase.ChildClosing(IPopupChild, PopupCloseType)
    GridCellRendererBase.IPopupParent.GetLocationForPopupAlignment(PopupRelativeAlignment, PopupRelativeAlignment)
    GridCellRendererBase.IPopupParent.GetBorderOverlapCue(PopupRelativeAlignment)
    GridCellRendererBase.NotifyShowingDropDown(Size)
    GridCellRendererBase.NotifyShowedDropDown()
    GridCellRendererBase.IPopupItem.GetPopupParentControl()
    GridCellRendererBase.IsRelatedControl(Control, Boolean)
    GridCellRendererBase.OnScrollInView(GridScrollCurrentCellReason)
    GridCellRendererBase.GetNestedCurrentCell()
    GridCellRendererBase.ShouldRefreshCurrentCell()
    GridCellRendererBase.ScaleFactor
    GridCellRendererBase.IsDisposing
    GridCellRendererBase.IsDisposed
    GridCellRendererBase.DropDownImp
    GridCellRendererBase.CurrentCell
    GridCellRendererBase.InBeginEdit
    GridCellRendererBase.SupportsFocusControl
    GridCellRendererBase.SupportsEditing
    GridCellRendererBase.HasFocusControl
    GridCellRendererBase.IsEditing
    GridCellRendererBase.IsDroppedDown
    GridCellRendererBase.Control
    GridCellRendererBase.InSetControlText
    GridCellRendererBase.ControlText
    GridCellRendererBase.HasControlText
    GridCellRendererBase.InSetControlValue
    GridCellRendererBase.ControlValue
    GridCellRendererBase.InSetSetControlValue
    GridCellRendererBase.HasControlValue
    GridCellRendererBase.InInitialize
    GridCellRendererBase.CurrentStyle
    GridCellRendererBase.Initalized
    GridCellRendererBase.Grid
    GridCellRendererBase.StyleInfo
    GridCellRendererBase.ForceRefreshOnActivateCell
    GridCellRendererBase.RowIndex
    GridCellRendererBase.ColIndex
    GridCellRendererBase.MouseDownTick
    GridCellRendererBase.MouseDownPoint
    GridCellRendererBase.ClickOverImage
    GridCellRendererBase.AlwaysRaiseCellClick
    GridCellRendererBase.DropDownPart
    GridCellRendererBase.DropDownButton
    GridCellRendererBase.IPopupParent.IsRightToLeft
    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.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridUITypeEditorCellRenderer : GridDropDownStandardValuesCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable, IWindowsFormsEditorService, IServiceProvider
    Remarks

    The GridUITypeEditorCellRenderer supports an autocomplete feature that will fill the text with possible matches from the drop-down list while the user is entering text.

    A renderer is created for each GridCellModelBase and GridControlBase. There can be several renderers associated with one GridUITypeEditorCellModel if several views display the same GridModel.

    Constructors

    GridUITypeEditorCellRenderer(GridControlBase, GridCellModelBase)

    Initializes a new GridUITypeEditorCellRenderer object for the given GridControlBase and GridCellModelBase.

    Declaration
    public GridUITypeEditorCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
    Parameters
    Type Name Description
    GridControlBase grid

    The GridControlBase that displays this cell renderer.

    GridCellModelBase cellModel

    The GridCellModelBase that holds data for this cell renderer that should be shared among views.

    Remarks

    References to GridControlBase, and GridCellModelBase will be saved.

    Properties

    CurrentInstance

    Gets or sets CurrentInstance. Used internally.

    Declaration
    public object CurrentInstance { get; set; }
    Property Value
    Type Description
    System.Object

    Model

    Gets the data model for this renderer.

    Declaration
    public GridUITypeEditorCellModel Model { get; }
    Property Value
    Type Description
    GridUITypeEditorCellModel

    Methods

    Dispose(Boolean)

    Unwires any events subscribed from GridDropDownStandardValuesCell.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    Overrides
    GridDropDownStandardValuesCellRenderer.Dispose(Boolean)
    Remarks

    See the documentation for the System.ComponentModel.Component class and its Dispose member.

    Draw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)

    Draw the content of specified cell.

    Declaration
    public override void Draw(Graphics g, Rectangle cellRectangle, int rowIndex, int colIndex, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphics context.

    System.Drawing.Rectangle cellRectangle

    Cell rectangle.

    System.Int32 rowIndex

    Row index.

    System.Int32 colIndex

    Column index.

    GridStyleInfo style

    Cell style information.

    Overrides
    GridCellRendererBase.Draw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)

    DropDownContainerCloseDropDown(Object, PopupClosedEventArgs)

    Indicates that the popup child was closed.

    Declaration
    public override void DropDownContainerCloseDropDown(object sender, PopupClosedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Event source.

    PopupClosedEventArgs e

    The PopupClosedEventArgsthat contains event data.

    Overrides
    GridCellRendererBase.DropDownContainerCloseDropDown(Object, PopupClosedEventArgs)

    DropDownContainerShowedDropDown(Object, EventArgs)

    Occurs after the popup child was dropped down and made visible.

    Declaration
    public override void DropDownContainerShowedDropDown(object sender, EventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Event source.

    System.EventArgs e

    The System.EventArgsthat contains event data.

    Overrides
    GridDropDownGridListControlCellRenderer.DropDownContainerShowedDropDown(Object, EventArgs)

    DropDownContainerShowingDropDown(Object, CancelEventArgs)

    Occurs when the drop down is about to be shown.

    Declaration
    public override void DropDownContainerShowingDropDown(object sender, CancelEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Event source.

    System.ComponentModel.CancelEventArgs e

    The System.ComponentModel.CancelEventArgsthat contains event data.

    Overrides
    GridDropDownStandardValuesCellRenderer.DropDownContainerShowingDropDown(Object, CancelEventArgs)

    GetDropDownPaintValueWidth()

    Returns the width of a possible "Glyph" to be drawn before the cell value. This method is overridden by the UITypeEditorCellRenderer

    Declaration
    protected override int GetDropDownPaintValueWidth()
    Returns
    Type Description
    System.Int32

    The width in pixel for the glyph.

    Overrides
    GridDropDownStandardValuesCellRenderer.GetDropDownPaintValueWidth()

    GetPaintValueSupported(GridStyleInfo, UITypeEditor)

    Determines if the UITypeEditor supports painting glyphs before the text.

    Declaration
    protected virtual bool GetPaintValueSupported(GridStyleInfo style, UITypeEditor editor)
    Parameters
    Type Name Description
    GridStyleInfo style

    The GridStyleInfo style of the parent cell.

    System.Drawing.Design.UITypeEditor editor

    The System.Drawing.Design.UITypeEditorUITypeEditor

    Returns
    Type Description
    System.Boolean

    true if glyphs should be painted.

    GetPaintValueWidth()

    Returns the width of the glyph

    Declaration
    protected virtual int GetPaintValueWidth()
    Returns
    Type Description
    System.Int32

    returns 20

    ListControlGridCellDrawn(Object, GridDrawCellEventArgs)

    Event handler for CellDrawn event of dropdown table.

    Declaration
    protected override void ListControlGridCellDrawn(object sender, GridDrawCellEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Event source.

    GridDrawCellEventArgs e

    The GridDrawCellEventArgsthat contains event data.

    Overrides
    GridDropDownGridListControlCellRenderer.ListControlGridCellDrawn(Object, GridDrawCellEventArgs)

    ListControlGridPrepareViewStyleInfo(Object, GridPrepareViewStyleInfoEventArgs)

    Event handler for PrepareViewStyleInfo event of dropdown table.

    Declaration
    protected override void ListControlGridPrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Event source.

    GridPrepareViewStyleInfoEventArgs e

    The GridPrepareViewStyleInfoEventArgsthat contains event data.

    Overrides
    GridDropDownGridListControlCellRenderer.ListControlGridPrepareViewStyleInfo(Object, GridPrepareViewStyleInfoEventArgs)

    NotifyCurrentCellChanged()

    Raises the GridCurrentCell.CellChanged event indicating the contents of the current cell have been changed (e.g. in response to a TextBox.Changed event).

    Declaration
    protected override void NotifyCurrentCellChanged()
    Overrides
    GridDropDownGridListControlCellRenderer.NotifyCurrentCellChanged()
    Remarks

    If you have implemented a custom cell type you should call this method from your derived renderer if you support modifying the cell contents.

    OnDeactived(Int32, Int32)

    Called from GridCurrentCell.Deactivated after the current cell is deactivated and before the GridCurrentCell.Deactivated event.

    Declaration
    protected override void OnDeactived(int rowIndex, int colIndex)
    Parameters
    Type Name Description
    System.Int32 rowIndex
    System.Int32 colIndex
    Overrides
    GridCellRendererBase.OnDeactived(Int32, Int32)

    OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)

    This method is called from the cell renderer's draw method to draw the contents of the client bounds for the cell, e.g. the text for a static cell.

    Declaration
    protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Points to the device context.

    System.Drawing.Rectangle clientRectangle

    Specifies the client rectangle. It is the cell rectangle without buttons and borders.

    System.Int32 rowIndex

    Specifies the row id.

    System.Int32 colIndex

    Specifies the column id.

    GridStyleInfo style

    A reference to the style object of the cell.

    Overrides
    GridTextBoxCellRenderer.OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
    Remarks

    When drawing cells, it is necessary to determine if the specified cell (with rowIndex and colIndex) is the current cell and if it is active.

    If your control is associated with a control and supports in-place editing and the specified cell is the current cell, you should position the control. Take a look at the GridTextBoxCellRenderer implementation of this method for an example.

    Otherwise, you can simply draw the cell.

    OnInitialize(Int32, Int32)

    This method gets called from the cell renderer's initialize method. Override this method if you need to any initialization for the current cell.

    Declaration
    protected override void OnInitialize(int rowIndex, int colIndex)
    Parameters
    Type Name Description
    System.Int32 rowIndex

    The row index.

    System.Int32 colIndex

    The column index.

    Overrides
    GridDropDownStandardValuesCellRenderer.OnInitialize(Int32, Int32)

    OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs)

    Allows custom formatting of a cell by changing its style object.

    Declaration
    public override void OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs e)
    Parameters
    Type Name Description
    GridPrepareViewStyleInfoEventArgs e

    The GridPrepareViewStyleInfoEventArgsthat contains event data.

    Overrides
    GridDropDownStandardValuesCellRenderer.OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs)

    OnShowDropDown()

    This is called from GridCurrentCell.ShowDropDown after BeginEdit has been called.

    Declaration
    protected override void OnShowDropDown()
    Overrides
    GridCellRendererBase.OnShowDropDown()
    Remarks

    If your renderer supports dropped-down state, the drop-down window should be made visible at this time.

    PaintValue(Graphics, Rectangle, Int32, Int32, GridStyleInfo, UITypeEditor, Object)

    Paints a glyph before the text by calling the UITypeEditor.PaintValue method

    Declaration
    protected virtual void PaintValue(Graphics g, Rectangle bounds, int rowIndex, int colIndex, GridStyleInfo style, UITypeEditor editor, object value)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Points to the device context.

    System.Drawing.Rectangle bounds

    Specifies the client rectangle. It is the cell rectangle without buttons and borders.

    System.Int32 rowIndex

    Specifies the row id.

    System.Int32 colIndex

    Specifies the column id.

    GridStyleInfo style

    A reference to the style object of the cell.

    System.Drawing.Design.UITypeEditor editor

    The System.Drawing.Design.UITypeEditorUITypeEditor

    System.Object value

    The cell value.

    Explicit Interface Implementations

    IServiceProvider.GetService(Type)

    Gets the service object of the specified type.

    Declaration
    object IServiceProvider.GetService(Type classService)
    Parameters
    Type Name Description
    System.Type classService

    An object that specifies the type of service object to get.

    Returns
    Type Description
    System.Object

    A service object of type serviceType.-or- null if there is no service object of type serviceType.

    Implements

    IQueryFocusInside
    IGridDropDownCell
    IPopupParent
    IPopupItem
    System.IDisposable
    System.Windows.Forms.Design.IWindowsFormsEditorService
    System.IServiceProvider
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved