I am rather new to vb.net so please bear with me. I have a datagridview from which a user must select some data. In this example a list of companies are shown. To select a company you have to place the cursor on the text itself. Is there a way to place cursor anywhere within the cell to accomplish the same thing?
Code:
If e.RowIndex >= 0 Then
Dim row As DataGridViewRow
row = Me.dgvCompanies.Rows(e.RowIndex)
txt_COM_CompanyName.Text = row.Cells("CompanyName").Value.ToString
End If