title: Value of Selected dataGridView cell in Textbox
body: <p>i have a datagridview and textbox in windows form,when i click on a cell of the datagridview the value must copy to the textbox.</p>
  
  <p>I am getting a error: </p>
  
  <blockquote>
    <p>System.Windows.Forms.DataGridCell Does not contain a definition for RowIndex</p>
  </blockquote>
  
  <p>I have tried this code</p>
  
  <pre><code>void dataGridView1_Click(object sender, EventArgs e)
   {
        Txt_GangApproved.Text=dataGridView1.CurrentCell.RowIndex.Cells["NO_OF_GANGS_RQRD"].Value.ToString();
   }
  </code></pre>