title: how to get data from selected row from datagridview
body: <p>i have a new problem, I have a datagridview, try to see the picture, I want when cells that exist in the datagridview on click, then click on the data entered into textbox1,
  anyone know how where how?
  thanks for helping me</p>
  
  <p><img src="https://i.stack.imgur.com/XI6Dj.jpg" alt="enter image description here"></p>
  
  <p>I was tried like below, but its not work</p>
  
  <pre><code>Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
          If Me.DataGridView1.RowCount &gt; 0 Then
  
              TextBox1.Text = Convert.ToString(Me.DataGridView1.SelectedRows)
  
  
              'TextBox1.Text = Me.DataGridView1.Rows(Me.DataGridView1.row).Cells(1).Value
          End If
      End Sub
  </code></pre>