menu

WinForms

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

    Show / Hide Table of Contents

    Class ButtonEditCellModel

    Implements the data model part for a ButtonEdit cell.

    Inheritance
    System.Object
    NonFinalizeDisposable
    Disposable
    GridCellModelBase
    GridStaticCellModel
    GridTextBoxCellModel
    ButtonEditCellModel
    Implements
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Inherited Members
    GridCellModelBase.ActiveTextChanged
    GridCellModelBase.ApplyFormattedText(GridStyleInfo, String, Int32)
    GridCellModelBase.ApplyText(GridStyleInfo, String)
    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)
    GridStaticCellModel.AllowFloating
    GridStaticCellModel.AllowMerging
    GridStaticCellModel.GetObjectData(SerializationInfo, StreamingContext)
    GridStaticCellModel.OnQueryCanFloatCell(Int32, Int32, GridStyleInfo, GridQueryFloatCell)
    GridStaticCellModel.OnQueryCanMergeCell(Int32, Int32, GridStyleInfo, GridMergeCellDirection)
    GridStaticCellModel.OnQueryPrefferedClientSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)
    GridTextBoxCellModel.GetFormattedText(GridStyleInfo, Object, Int32)
    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.GridHelperClasses
    Assembly: Syncfusion.GridHelperClasses.Windows.dll
    Syntax
    public class ButtonEditCellModel : GridTextBoxCellModel, ISerializable, IDisposable

    Constructors

    ButtonEditCellModel(GridModel)

    Initializes a new instance of the ButtonEditCellModel class and stores a reference to the GridModel this cell belongs to.

    Declaration
    public ButtonEditCellModel(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.

    ButtonEditCellModel(SerializationInfo, StreamingContext)

    Initializes a new instance of the ButtonEditCellModel class from a serialization stream.

    Declaration
    protected ButtonEditCellModel(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

    CreateRenderer(GridControlBase)

    Creates a cell renderer.

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

    The Grid control to add cell model.

    Returns
    Type Description
    GridCellRendererBase

    A Cell renderer.

    Overrides
    GridTextBoxCellModel.CreateRenderer(GridControlBase)

    RaiseDrawButtonFace(GridDrawButtonFaceEventArgs)

    Raises the GridDrawButtonFace event

    Declaration
    public void RaiseDrawButtonFace(GridDrawButtonFaceEventArgs e)
    Parameters
    Type Name Description
    GridDrawButtonFaceEventArgs e

    The GridDrawButtonFaceEventArgs that contains the event data.

    Events

    GridDrawButtonFace

    Occurs before the Grid draws the ButtonEdit face.

    Declaration
    public event ButtonEditCellModel.GridDrawButtonFaceEventHandler GridDrawButtonFace
    Event Type
    Type
    ButtonEditCellModel.GridDrawButtonFaceEventHandler
    Remarks

    See ButtonEditCellModel.GridDrawButtonFaceEventHandler for more detailed discussion about this event.

    Implements

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