Class GridContextMenuEventArgs
Provides data for GridContextMenuOpening event.
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class GridContextMenuEventArgs : GridHandledEventArgs
Constructors
GridContextMenuEventArgs(MenuFlyout, Object, RowColumnIndex, ContextMenuType, Object)
Initializes a new instance of GridContextMenuEventArgs class.
Declaration
public GridContextMenuEventArgs(MenuFlyout contextMenu, object contextMenuInfo, RowColumnIndex rowColumnIndex, ContextMenuType contextMenuType, object originalSource = null)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.MenuFlyout | contextMenu | Contains the context menu for the SfDataGrid. |
System.Object | contextMenuInfo | Contains the information about the content menu. |
RowColumnIndex | rowColumnIndex | The corresponding rowcolumnindex where the shortcut menu is opened. |
ContextMenuType | contextMenuType | The corresponding type of the context menu. |
System.Object | originalSource | The source of the event. |
Properties
ContextMenu
Gets or sets the shortcut menu associated with SfDataGrid.
Declaration
public MenuFlyout ContextMenu { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.MenuFlyout | A |
ContextMenuInfo
Gets or sets an object that contains an information about the context menu.
Declaration
public object ContextMenuInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object that contains an information about the context menu. |
ContextMenuType
Gets or sets the type of context menu.
Declaration
public ContextMenuType ContextMenuType { get; set; }
Property Value
Type | Description |
---|---|
ContextMenuType | One of the ContextMenuType enumeration that specifies the type of context menu. |
RowColumnIndex
Gets or sets the RowColumnIndex where the context menu is opened.
Declaration
public RowColumnIndex RowColumnIndex { get; set; }
Property Value
Type | Description |
---|---|
RowColumnIndex | The corresponding RowColumnIndex of the context menu. |