menu

WinForms

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

    Show / Hide Table of Contents

    Class GridModelCommand

    Implements a class that encapsulates a command to be executed at a later point in time.

    Inheritance
    System.Object
    SyncfusionCommand
    GridModelCommand
    GridChangeCellsCommand
    GridCurrentCellValueCommand
    GridModelInsertRangeCommand
    GridModelMoveRangeCommand
    GridModelRemoveRangeCommand
    GridModelSetBanneredRangesCommand
    GridModelSetCoveredRangesCommand
    GridSelectionStateCommand
    Inherited Members
    SyncfusionCommand.Execute()
    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 abstract class GridModelCommand : SyncfusionCommand
    Remarks

    The Execute() method is overridden in specialized command classes and performs the command that is saved in this command.

    Constructors

    GridModelCommand()

    Initializes the new instances of the GridModelCommand class.

    Declaration
    public GridModelCommand()

    GridModelCommand(GridModel)

    Initializes a new GridModelCommand and associates it with a GridModel.

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

    The GridModel this command is executed on.

    Properties

    Description

    Gets a description for the command.

    Declaration
    public override string Description { get; }
    Property Value
    Type
    System.String
    Overrides
    SyncfusionCommand.Description

    Grid

    Gets the GridModel this command is executed on.

    Declaration
    public GridModel Grid { get; }
    Property Value
    Type
    GridModel

    Methods

    SetDescription(String)

    Changes the description of this command.

    Declaration
    protected void SetDescription(string value)
    Parameters
    Type Name Description
    System.String value

    The new description text.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved