Tom Sage
asked on
How to select a value in the selected row?
Hello,
How can I select the row pointed to by the arrow in the left column? I have tried this code:
DataGridView.CurrentRow.Ce lls(0).Val ue
but it does not select the row that the arrow in the left column is pointing to.
Thanks
How can I select the row pointed to by the arrow in the left column? I have tried this code:
DataGridView.CurrentRow.Ce
but it does not select the row that the arrow in the left column is pointing to.
Thanks
Try DataGridView1.SelectedRows (0).Cells( 0).Value
If you want to select the row (with the arrow on the left column) you can do this:
Dim col As Integer = 2
Me.DataGridView1.CurrentCell = Me.DataGridView1(0, col)
<please ignore this comment>
Olá Tiago,
Ainda bem que vejo mais um Português por aqui.
Um abraço
</please ignore this comment>
Olá Tiago,
Ainda bem que vejo mais um Português por aqui.
Um abraço
</please ignore this comment>
<please ignore this comment too>
Olá Jorge,
É verdade, já tinha visto que tb andas por cá.
Um abraço
</please ignore this comment too>
Olá Jorge,
É verdade, já tinha visto que tb andas por cá.
Um abraço
</please ignore this comment too>
ASKER
I think I did not explain exactly what I need.
I need the value of cell zero on the row on which the arrow is currently pointing. I do not need to select the row.
Thank you
I need the value of cell zero on the row on which the arrow is currently pointing. I do not need to select the row.
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your quick answer.