Dim rowIndex as integer = DataGridView1.CurrentCellAddress.Y 'This will get the row index of the current selected cell
Dim row as datagridviewrow = datagridview1.rows(rowIndex)
dim lyrics as string = row.cells(4).value.tostring 'Get the value of the fifth column on the row selected
RichTextBox1.clear()
Richtextbox1.text = lyrics
|