Class ContextMenuOpeningEventArgs
Provides data about the ContextMenuOpening event.
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Events
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class ContextMenuOpeningEventArgs : GridCancelEventArgs
Constructors
ContextMenuOpeningEventArgs(ContextMenuStrip, ContextMenuType, Object, Point, Int32, Int32, Object)
Initializes a new instance of the ContextMenuOpeningEventArgs class.
Declaration
public ContextMenuOpeningEventArgs(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 or sets the context menu associated with DataGrid.
Declaration
public ContextMenuStrip ContextMenu { get; set; }
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 or sets the location of the context menu.
Declaration
public Point Location { get; set; }
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 |