menu

WinForms

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

    Show / Hide Table of Contents

    Class GridDropDownMonthCalendarCellModel

    Defines the data / model part of a month calendar cell that lets users drop-down a calendar and select a date or range of dates.

    Inheritance
    System.Object
    NonFinalizeDisposable
    Disposable
    GridCellModelBase
    GridStaticCellModel
    GridTextBoxCellModel
    GridDropDownCellModel
    GridDropDownMonthCalendarCellModel
    Implements
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Inherited Members
    GridCellModelBase.ActiveTextChanged
    GridCellModelBase.BindingContext
    GridCellModelBase.ButtonBarSize
    GridCellModelBase.CalculatePreferredCellSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)
    GridCellModelBase.CreateCopy(GridModel)
    GridCellModelBase.Description
    GridCellModelBase.Dispose()
    GridCellModelBase.ForceCoveredCellFullBounds
    GridCellModelBase.GetActiveText(Int32, Int32)
    GridCellModelBase.GetCellClientSize(Int32, Int32, GridStyleInfo)
    GridCellModelBase.GetCellSize(Int32, Int32)
    GridCellModelBase.GetFormattedOrActiveTextAt(Int32, Int32, GridStyleInfo)
    GridCellModelBase.GetLocalizedString(String)
    GridCellModelBase.GetPropertyDescriptor(GridStyleInfo)
    GridCellModelBase.GetText(GridStyleInfo, Object)
    GridCellModelBase.GetTypeConverter(GridStyleInfo)
    GridCellModelBase.Grid
    GridCellModelBase.IsDisposed
    GridCellModelBase.IsDisposing
    GridCellModelBase.MeasureEmptyCellString
    GridCellModelBase.MeasureSampleWString(Graphics, Font)
    GridCellModelBase.OnActiveTextChanged(GridCellEventArgs)
    GridCellModelBase.OnBindingContextChanged(EventArgs)
    GridCellModelBase.OnModelDeserialization(Object, GridModel)
    GridCellModelBase.ResetActiveText(Int32, Int32)
    GridCellModelBase.SerializeSchemeVersion
    GridCellModelBase.SetActiveText(Int32, Int32, String)
    GridCellModelBase.SubtractBorders(Rectangle, GridStyleInfo)
    GridCellModelBase.SubtractBorders(Rectangle, GridStyleInfo, Boolean)
    GridDropDownCellModel.GetObjectData(SerializationInfo, StreamingContext)
    GridDropDownCellModel.OnQueryPrefferedClientSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)
    GridDropDownCellModel.SupportsChoiceList
    GridStaticCellModel.AllowFloating
    GridStaticCellModel.AllowMerging
    GridStaticCellModel.OnQueryCanFloatCell(Int32, Int32, GridStyleInfo, GridQueryFloatCell)
    GridStaticCellModel.OnQueryCanMergeCell(Int32, Int32, GridStyleInfo, GridMergeCellDirection)
    NonFinalizeDisposable.Dispose(Boolean)
    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.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridDropDownMonthCalendarCellModel : GridDropDownCellModel, ISerializable, IDisposable
    Remarks

    You typically access cell models through the CellModels property of the GridModel class.

    A GridDropDownMonthCalendarCellModel can serve as model for several GridDropDownMonthCalendarCellRenderer instances if a there are several GridControlBase views for a GridModel.

    See GridDropDownMonthCalendarCellRenderer for more detailed information about this cell type.

    Constructors

    GridDropDownMonthCalendarCellModel(GridModel)

    Initializes a new GridDropDownMonthCalendarCellModel object and stores a reference to the GridModel this cell belongs to.

    Declaration
    public GridDropDownMonthCalendarCellModel(GridModel grid)
    Parameters
    Type Name Description
    GridModel grid

    The GridModel for this cell model.

    Remarks

    You typically access cell models through the CellModels property of the GridModel class.

    GridDropDownMonthCalendarCellModel(SerializationInfo, StreamingContext)

    Initializes a new GridDropDownMonthCalendarCellModel from a serialization stream.

    Declaration
    protected GridDropDownMonthCalendarCellModel(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    An object that holds all the data needed to serialize or de_serialize this instance.

    System.Runtime.Serialization.StreamingContext context

    Describes the source and destination of the serialized stream specified by info.

    Methods

    ApplyFormattedText(GridStyleInfo, String, Int32)

    Parses the display text and converts it into a cell value to be stored in the style object.

    Declaration
    public override bool ApplyFormattedText(GridStyleInfo style, string text, int textInfo)
    Parameters
    Type Name Description
    GridStyleInfo style

    Cell style information.

    System.String text

    Input text.

    System.Int32 textInfo

    TextInfo is a hint of who is calling, default is GridCellBaseTextInfo.DisplayText.

    Returns
    Type Description
    System.Boolean

    True if value was parsed correctly and saved in style object as CellValue; False otherwise.

    Overrides
    GridCellModelBase.ApplyFormattedText(GridStyleInfo, String, Int32)

    ApplyText(GridStyleInfo, String)

    Parses the text and converts it into a cell value to be stored in the style object (ignoring any Format settings). CultureInfo.CurrentText is used for parsing the string.

    Declaration
    public override bool ApplyText(GridStyleInfo style, string text)
    Parameters
    Type Name Description
    GridStyleInfo style

    The GridStyleInfo object that holds cell information.

    System.String text

    The input text to be parsed.

    Returns
    Type Description
    System.Boolean

    True if value was parsed correctly and saved in style object as CellValue; False otherwise.

    Overrides
    GridCellModelBase.ApplyText(GridStyleInfo, String)

    CreateRenderer(GridControlBase)

    Creates a renderer for this cell model.

    Declaration
    public override GridCellRendererBase CreateRenderer(GridControlBase control)
    Parameters
    Type Name Description
    GridControlBase control

    The grid control.

    Returns
    Type Description
    GridCellRendererBase

    Cell renderer.

    Overrides
    GridDropDownCellModel.CreateRenderer(GridControlBase)

    GetFormattedText(GridStyleInfo, Object, Int32)

    This is called from GridStyleInfo.GetFormattedText. GridStyleInfo.CultureInfo is used for conversion to string.

    Declaration
    public override string GetFormattedText(GridStyleInfo style, object value, int textInfo)
    Parameters
    Type Name Description
    GridStyleInfo style

    The GridStyleInfo object that holds cell information.

    System.Object value

    The value to format.

    System.Int32 textInfo

    TextInfo is a hint of who is calling, default is GridCellBaseTextInfo.DisplayText.

    Returns
    Type Description
    System.String

    The formatted text for the given value.

    Overrides
    GridTextBoxCellModel.GetFormattedText(GridStyleInfo, Object, Int32)

    GetValueFromStyle(GridStyleInfo)

    Gets formatted DateTime Value from GridStyleInfo object.

    Declaration
    public static object GetValueFromStyle(GridStyleInfo style)
    Parameters
    Type Name Description
    GridStyleInfo style

    GridStyleInfo object.

    Returns
    Type Description
    System.Object

    Formatted DateTime value.

    Implements

    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved