passing the datagrid row value to the next form label
<p>hi i am working on winform and i have a datadrid view, i have a context menu strip. on that edit is written. when i click on datadrid, right click a context menu is open with edit. when clicked it should pass the value to a new form, i have written the code for transfer but it is not passing i dont know whats the problem here</p>

<pre><code>       private void editToolStripMenuItem_Click(object sender, EventArgs e)
    {
        Form6 f = new Form6();
     f.label1.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();

    }
</code></pre>

<p>is the code correct?</p>
