I have a button in column 8 of a datagridview.
I'm trying to capture the value of a column depending on what row the user clicks on the button. I'm lost as to how to do this.
If e.ColumnIndex = 8 Then
MsgBox(dg.Rows(0).Cells(7).Value)
End If
any help would be appreciated
Thanks
I'm trying to capture the value of a column depending on what row the user clicks on the button. I'm lost as to how to do this.
If e.ColumnIndex = 8 Then
MsgBox(dg.Rows(0).Cells(7).Value)
End If
any help would be appreciated
Thanks