BCGControlBar Library for .NET
ContextMenuNeeded Event




Raised when grid needs to display a context menu.
Syntax
'Declaration
 
Public Event ContextMenuNeeded As GridContextMenuNeededEventHandler
'Usage
 
Dim instance As GridControl
Dim handler As GridContextMenuNeededEventHandler
 
AddHandler instance.ContextMenuNeeded, handler
public event GridContextMenuNeededEventHandler ContextMenuNeeded
public: __event GridContextMenuNeededEventHandler* ContextMenuNeeded
public:
event GridContextMenuNeededEventHandler^ ContextMenuNeeded
Event Data

The event handler receives an argument of type GridContextMenuNeededEventArgs containing data related to this event. The following GridContextMenuNeededEventArgs properties provide information specific to this event.

PropertyDescription
Button (Inherited from System.Windows.Forms.MouseEventArgs)Gets which mouse button was pressed.
Cell  
CellPart  
Clicks (Inherited from System.Windows.Forms.MouseEventArgs)Gets the number of times the mouse button was pressed and released.
Column  
ContextMenuStrip  
Delta (Inherited from System.Windows.Forms.MouseEventArgs)Gets a signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant. A detent is one notch of the mouse wheel.
Handled (Inherited from System.Windows.Forms.HandledMouseEventArgs)Gets or sets whether this event should be forwarded to the control's parent container.
Location (Inherited from System.Windows.Forms.MouseEventArgs)Gets the location of the mouse during the generating mouse event.
X (Inherited from System.Windows.Forms.MouseEventArgs)Gets the x-coordinate of the mouse during the generating mouse event.
Y (Inherited from System.Windows.Forms.MouseEventArgs)Gets the y-coordinate of the mouse during the generating mouse event.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback