menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridDateTimeCellRenderer - API Reference

    Show / Hide Table of Contents

    Class GridDateTimeCellRenderer

    Represents a class that used to draw the date time cell.

    Inheritance
    System.Object
    GridCellRendererBase
    GridVirtualizingCellRendererBase<SfDateTimeEdit>
    GridDateTimeCellRenderer
    Implements
    IGridCellRenderer<TableControl>
    System.IDisposable
    Inherited Members
    GridVirtualizingCellRendererBase<SfDateTimeEdit>.InitializeEditElement(DataColumnBase, RowColumnIndex, SfDateTimeEdit)
    GridVirtualizingCellRendererBase<SfDateTimeEdit>.BeginEdit(DataColumnBase, RowColumnIndex)
    GridVirtualizingCellRendererBase<SfDateTimeEdit>.EndEdit(DataColumnBase, RowColumnIndex)
    GridVirtualizingCellRendererBase<SfDateTimeEdit>.OnCreateEditUIElement()
    GridVirtualizingCellRendererBase<SfDateTimeEdit>.OnEnteredEditMode(SfDateTimeEdit)
    GridVirtualizingCellRendererBase<SfDateTimeEdit>.OnEditingComplete(DataColumnBase, SfDateTimeEdit)
    GridCellRendererBase.SetCurrentCellState(RowColumnIndex, Control, Boolean, Boolean)
    GridCellRendererBase.ResetCurrentCellState()
    GridCellRendererBase.SetFocus(Boolean)
    GridCellRendererBase.UnloadUIElement()
    GridCellRendererBase.Dispose()
    GridCellRendererBase.Render(Graphics, Rectangle, String, CellStyleInfo, DataColumnBase, RowColumnIndex)
    GridCellRendererBase.MouseHover(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.MouseMove(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.MouseHoverLeave(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.MouseUp(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.MouseDown(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.MouseDoubleClick(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.UpdateEditElement(DataColumnBase, Control, Rectangle)
    GridCellRendererBase.DrawErrorIcon(Graphics, Rectangle, Bitmap, RowColumnIndex)
    GridCellRendererBase.KeyDown(DataColumnBase, RowColumnIndex, KeyEventArgs)
    GridCellRendererBase.KeyPress(DataColumnBase, RowColumnIndex, KeyPressEventArgs)
    GridCellRendererBase.KeyUp(DataColumnBase, RowColumnIndex, KeyEventArgs)
    GridCellRendererBase.IGridCellRenderer<TableControl>.OnDrawCurrentCell(Graphics, SfDataGrid, RowColumnIndex)
    GridCellRendererBase.CanValidate()
    GridCellRendererBase.GetEditorUIElementBounds()
    GridCellRendererBase.GetCellValue()
    GridCellRendererBase.SetFocus(Control, Boolean)
    GridCellRendererBase.OnUpdateEditElement(DataColumnBase, Control, Rectangle)
    GridCellRendererBase.OnDrawCurrentCell(Graphics, SfDataGrid, RowColumnIndex)
    GridCellRendererBase.Dispose(Boolean)
    GridCellRendererBase.OnDrawErrorIcon(Graphics, Rectangle, Bitmap, RowColumnIndex)
    GridCellRendererBase.OnMouseHover(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.OnMouseMove(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.OnMouseHoverLeave(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.OnMouseUp(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.OnMouseDown(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.OnMouseDoubleClick(DataColumnBase, RowColumnIndex, MouseEventArgs)
    GridCellRendererBase.ShowValidationErrorToolTip(SfToolTip, DataColumnBase, RowColumnIndex, Point)
    GridCellRendererBase.OnKeyUp(DataColumnBase, RowColumnIndex, KeyEventArgs)
    GridCellRendererBase.UpdateCurrentCellState(Control, Boolean)
    GridCellRendererBase.TableControl
    GridCellRendererBase.IsEditable
    GridCellRendererBase.IsFocusable
    GridCellRendererBase.HasCurrentCellState
    GridCellRendererBase.CurrentCellIndex
    GridCellRendererBase.CurrentCellRendererElement
    GridCellRendererBase.IsInEditing
    GridCellRendererBase.IsFocused
    GridCellRendererBase.IsHovered
    GridCellRendererBase.IsPressed
    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.WinForms.DataGrid.Renderers
    Assembly: Syncfusion.SfDataGrid.WinForms.dll
    Syntax
    public class GridDateTimeCellRenderer : GridVirtualizingCellRendererBase<SfDateTimeEdit>, IGridCellRenderer<TableControl>, IDisposable

    Constructors

    GridDateTimeCellRenderer()

    Declaration
    public GridDateTimeCellRenderer()

    Methods

    GetControlValue()

    Overridden to get the value from the DateTime edit control.

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

    Returns the value of the editor control.

    Overrides
    GridCellRendererBase.GetControlValue()

    OnDropDownClosed(Object, EventArgs)

    Occurs after the drop down is closed for the DateTime edit control.

    Declaration
    protected virtual void OnDropDownClosed(object sender, EventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The object of the sender.

    System.EventArgs e

    An System.EventArgs that contains event data.

    OnDropDownClosing(Object, CancelEventArgs)

    Occurs while closing the drop down of the DateTime edit control.

    Declaration
    protected virtual void OnDropDownClosing(object sender, CancelEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The object of the sender.

    System.ComponentModel.CancelEventArgs e

    An System.ComponentModel.CancelEventArgs that contains event data.

    OnDropDownOpening(Object, CancelEventArgs)

    Occurs while opening the drop down calender of the DateTime control.

    Declaration
    protected virtual void OnDropDownOpening(object sender, CancelEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The object of the sender.

    System.ComponentModel.CancelEventArgs e

    An System.ComponentModel.CancelEventArgs that contains event data.

    OnInitializeEditElement(DataColumnBase, RowColumnIndex, SfDateTimeEdit)

    Overridden to initialize the DateTime cell edit element.

    Declaration
    protected override void OnInitializeEditElement(DataColumnBase column, RowColumnIndex rowColumnIndex, SfDateTimeEdit uiElement)
    Parameters
    Type Name Description
    DataColumnBase column

    The DataColumnBase of the cell.

    RowColumnIndex rowColumnIndex

    The RowColumnIndex of the cell.

    SfDateTimeEdit uiElement

    The SfDateTimeEdit control to be initialized.

    Overrides
    Syncfusion.WinForms.DataGrid.Renderers.GridVirtualizingCellRendererBase<Syncfusion.WinForms.Input.SfDateTimeEdit>.OnInitializeEditElement(Syncfusion.WinForms.DataGrid.DataColumnBase, Syncfusion.WinForms.GridCommon.ScrollAxis.RowColumnIndex, Syncfusion.WinForms.Input.SfDateTimeEdit)

    OnKeyDown(DataColumnBase, RowColumnIndex, KeyEventArgs)

    Overridden to handle the key down on the date time cell.

    Declaration
    protected override void OnKeyDown(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, KeyEventArgs e)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    The DataColumnBase of the cell.

    RowColumnIndex rowColumnIndex

    The RowColumnIndex of the cell.

    System.Windows.Forms.KeyEventArgs e

    An System.Windows.Forms.KeyEventArgs that contains event data.

    Overrides
    GridCellRendererBase.OnKeyDown(DataColumnBase, RowColumnIndex, KeyEventArgs)

    OnKeyPress(DataColumnBase, RowColumnIndex, KeyPressEventArgs)

    Occurs when the key is pressed while the cell has focus.

    Declaration
    protected override void OnKeyPress(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, KeyPressEventArgs e)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    The DataColumnBase of the cell.

    RowColumnIndex rowColumnIndex

    The row and column index of the cell.

    System.Windows.Forms.KeyPressEventArgs e

    The System.Windows.Forms.KeyEventArgs that contains the event data.

    Overrides
    GridCellRendererBase.OnKeyPress(DataColumnBase, RowColumnIndex, KeyPressEventArgs)

    OnRender(Graphics, Rectangle, String, CellStyleInfo, DataColumnBase, RowColumnIndex)

    Overridden to draw the DateTime cell value.

    Declaration
    protected override void OnRender(Graphics paint, Rectangle cellRect, string cellValue, CellStyleInfo style, DataColumnBase column, RowColumnIndex rowColumnIndex)
    Parameters
    Type Name Description
    System.Drawing.Graphics paint

    The System.Drawing.Graphics that used to draw the cell.

    System.Drawing.Rectangle cellRect

    The bounds of the cell.

    System.String cellValue

    The value of the cell.

    CellStyleInfo style

    The CellStyleInfo of the cell.

    DataColumnBase column

    The DataColumnBase of the cell.

    RowColumnIndex rowColumnIndex

    The row and column index of the cell.

    Overrides
    GridCellRendererBase.OnRender(Graphics, Rectangle, String, CellStyleInfo, DataColumnBase, RowColumnIndex)

    OnUnwireEditUIElement(SfDateTimeEdit)

    Overridden to wire the events of the SfDateTimeEdit control on the initialization.

    Declaration
    protected override void OnUnwireEditUIElement(SfDateTimeEdit uiElement)
    Parameters
    Type Name Description
    SfDateTimeEdit uiElement

    The SfDateTimeEdit control.

    Overrides
    Syncfusion.WinForms.DataGrid.Renderers.GridVirtualizingCellRendererBase<Syncfusion.WinForms.Input.SfDateTimeEdit>.OnUnwireEditUIElement(Syncfusion.WinForms.Input.SfDateTimeEdit)

    OnValueChanged(Object, EventArgs)

    Occurs when the value is changed for the DateTime edit control.

    Declaration
    protected virtual void OnValueChanged(object sender, EventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The object of the sender.

    System.EventArgs e

    An System.EventArgs that contains event data.

    OnWireEditUIElement(SfDateTimeEdit)

    Overridden to unwire the events of the DateTime edit control.

    Declaration
    protected override void OnWireEditUIElement(SfDateTimeEdit uiElement)
    Parameters
    Type Name Description
    SfDateTimeEdit uiElement

    The SfDateTimeEdit control.

    Overrides
    Syncfusion.WinForms.DataGrid.Renderers.GridVirtualizingCellRendererBase<Syncfusion.WinForms.Input.SfDateTimeEdit>.OnWireEditUIElement(Syncfusion.WinForms.Input.SfDateTimeEdit)

    SetControlValue(Object)

    Overridden to set the control value.

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

    The control value.

    Overrides
    GridCellRendererBase.SetControlValue(Object)

    Implements

    IGridCellRenderer<T>
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved