BCGControlBar Library for .NET
ShowContextMenu Method (GridControl)




Mouse event data associated with mouse click.
Raises ContextMenuNeeded event and displays a context menu returned from the handler.
Syntax
'Declaration
 
Public Sub ShowContextMenu( _
   ByVal e As MouseEventArgs _
) 
'Usage
 
Dim instance As GridControl
Dim e As MouseEventArgs
 
instance.ShowContextMenu(e)
public void ShowContextMenu( 
   MouseEventArgs e
)
public: void ShowContextMenu( 
   MouseEventArgs* e
) 
public:
void ShowContextMenu( 
   MouseEventArgs^ e
) 

Parameters

e
Mouse event data associated with mouse click.
Remarks
Alternatively the handler may display a context meny itself. In this case it should set GridContextMenuNeededEventArgs.Handled to true.
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