vb.net get name by Cell Click

The solution for “vb.net get name by Cell Click” can be found here. The following code will assist you in solving the problem.

Private Sub GetSelectionChangedValue(e As DataGridViewCellEventArgs)
Dim selectedRow As DataGridViewRow
Dim index As Integer
index = e.RowIndex
selectedRow = dgvtest.Rows(index)
lblCellCange.Text = selectedRow.Cells(2).Value.ToString

End Sub

Private Sub dgvtest_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles dgvtest.CellClick
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts