menu

WinForms

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

    Show / Hide Table of Contents

    Class ContextMenuOpenedEventArgs

    Provides data about the ContextMenuOpened event.

    Inheritance
    System.Object
    System.EventArgs
    GridEventArgs
    ContextMenuOpenedEventArgs
    Inherited Members
    GridEventArgs.OriginalSender
    System.EventArgs.Empty
    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.WinForms.DataGrid.Events
    Assembly: Syncfusion.SfDataGrid.WinForms.dll
    Syntax
    public class ContextMenuOpenedEventArgs : GridEventArgs

    Constructors

    ContextMenuOpenedEventArgs(ContextMenuStrip, ContextMenuType, Object, Point, Int32, Int32, Object)

    Initializes a new instance of the ContextMenuOpenedEventArgs class.

    Declaration
    public ContextMenuOpenedEventArgs(ContextMenuStrip contextMenu, ContextMenuType contextMenuType, object contextMenuInfo, Point location, int rowIndex, int columnIndex, object originalSource)
    Parameters
    Type Name Description
    System.Windows.Forms.ContextMenuStrip contextMenu

    The context menu associated with DataGrid.

    ContextMenuType contextMenuType

    The type of the context menu.

    System.Object contextMenuInfo

    Contains the information about the content menu.

    System.Drawing.Point location

    The location of the context menu.

    System.Int32 rowIndex

    The row index where the context menu is opened.

    System.Int32 columnIndex

    The column index where the context menu is opened.

    System.Object originalSource

    The source of the event.

    Properties

    ColumnIndex

    Gets the column index where the context menu is opened.

    Declaration
    public int ColumnIndex { get; }
    Property Value
    Type
    System.Int32

    ContextMenu

    Gets the context menu associated with DataGrid.

    Declaration
    public ContextMenuStrip ContextMenu { get; }
    Property Value
    Type
    System.Windows.Forms.ContextMenuStrip

    ContextMenuInfo

    Gets the object that contains information about the context menu.

    Declaration
    public object ContextMenuInfo { get; }
    Property Value
    Type
    System.Object

    ContextMenutype

    Gets the type of context menu.

    Declaration
    public ContextMenuType ContextMenutype { get; }
    Property Value
    Type
    ContextMenuType

    Location

    Gets the location of the context menu.

    Declaration
    public Point Location { get; }
    Property Value
    Type
    System.Drawing.Point

    RowIndex

    Gets the row index where the context menu is opened.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved