I have a form with a datagrid on it. What I want to be able to do is have a drop down menu appear next to the mouse when I right click a cell. I need to be able to select an option from the menu and run some stuff. 

I can get the right click event to register, but the contextmenu won't appear.
The menu in the code below should appear with the option to copy the cell.

```
[void] [System.Reflection.Assembly]::LoadWithPartialName(“System.Windows.Forms”)
[void] [System.Reflection.Assembly]::LoadWithPartialName(“System.Drawing”)
$form = New-Object System.Windows.Forms.Form
$form.Size = New-Object System.Drawing.Size(1040,518)
$form.KeyPreview = $true
$form.StartPosition = 'centerscreen'
$form.BackColor = 'MidnightBlue'
$form.Add_KeyDown({if($_.KeyCode -eq "Escape"){$form.Close()}})
$form.Text = "VIOC Toolkit 5.4" 
$form.Icon = [system.drawing.icon]::ExtractAssociatedIcon($PSHOME + "\powershell_ise.exe")
$form.MinimumSize = New-Object System.Drawing.Size(1040,525)

$DataGrid1 = New-Object System.Windows.Forms.DataGridView
$DataGrid1.Location = New-Object System.Drawing.Size(298,29)
$DataGrid1.Dock = "Fill"
$DataGrid1.BorderStyle = 'FixedSingle'    
$DataGrid1.DefaultCellStyle.Font = New-Object System.Drawing.Font($dgfont,$dgfontSize)
$DataGrid1.AlternatingRowsDefaultCellStyle.BackColor = 'LightGray'
$DataGrid1.AllowUserToAddRows = $false
$DataGrid1.RowHeadersVisible = $false
$DataGrid1.BackgroundColor = "White"
$DataGrid1.Name="DataGrid1"
$DataGrid1.Text="DataGrid1"
$DataGrid1.ColumnCount = 3
$DataGrid1.Columns[0].Name = 'one'
$DataGrid1.Columns[1].Name = 'two'
$DataGrid1.Columns[2].Name = 'three'
$DataGrid1.Rows.add(@('a', 'b', 'c'))
$DataGrid1.Rows.add(@('d', 'e', 'f'))
#*************************************************************#    
$DataGrid1.add_CellMouseClick({
    if($_.button -eq 'Right'){
        ContextMenu($DataGrid1)
    }
})

function ContextMenu($Grid){
    #create the context menu
    $menu = New-Object System.Windows.Forms.ContextMenu
    $CopyMenuItem = New-Object System.Windows.Forms.MenuItem
    $copymenuItem.text = 'copy'
    $copymenuItem.add_Click({write-host 'clicked copy'})
    $menu.MenuItems.AddRange(@($CopyMenuItem))

}

#***************************************************************#
$form.Controls.Add($DataGrid1)
$form.ShowDialog() | out-null

```