Answers for "vb.net get name by Cell Click"

VBA
1

vb.net get name by Cell Click

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
        GetSelectionChangedValue(e)
    End Sub
Posted by: Guest on January-21-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language