title: Select a column value of DataGridView in c# winform
body: <p>I am developing an application in Visual Studio 2010 c#.</p>
  
  <p>I have two forms as shown in this image:</p>
  
  <p><a href="https://i.stack.imgur.com/ZaMGi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZaMGi.png" alt="enter image description here"></a></p>
  
  <p>In Form2 I have a <code>DataGridView</code> control with the user's name, and in Form1 I have a TextBox and a Button. I opened Form2 by:</p>
  
  <pre><code>Form2 frm = new Form2();
          frm.ShowDialog();
  </code></pre>
  
  <p>How can I get the selected column value of GDataGridView in the Form1 TextBox?</p>