C# right click event code example
Example: C# right click event
private void dataGridView1_MouseDown(object sender, MouseEventArgs e)
{
if( e.Button = MouseButtons.Right )
{
dataGridView1.ContextMenu = contextMenu1;
dataGridView1.ContextMenu.Show( dataGridView1, e.Location );
}
}