Private Sub DataGrid1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.SelectionChanged If Me.DataGrid1.SelectedRows.Count > 0 Then Me.TextBox1.Text = Me.DataGrid1.SelectedRows(0).Cells(0).Value End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)