Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
For Each row As DataGridViewRow In Me.DataGridView1.Rows If selectedLineNo = row.Cells.Item("LINENO").Value Then Me.DataGridView1.FirstDisplayedScrollingRowIndex = row.Index Me.DataGridView1.Refresh() Me.DataGridView1.CurrentCell = Me.DataGridView1.Rows(row.Index).Cells(0) Me.DataGridView1.Rows(row.Index).Selected = True Exit For End If Next
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.