private void dataGridView1_MouseDown(object sender, MouseEventArgs e) { if( e.Button = MouseButtons.Right ) { dataGridView1.ContextMenu = contextMenu1; dataGridView1.ContextMenu.Show( dataGridView1, e.Location ); } }