how can i display the selected row in datagridview to label?
Glenda C.
0
Newbie Poster
Recommended Answers
Jump to PostPrivate Sub DataGridView1_CellEnter(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellEnter If (DataGridView1.RowCount > 1) And (DataGridView1.CurrentCell.Value IsNot Nothing) Then Label1.Text = DataGridView1.CurrentCell.Value.ToString End If End Sub
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.