Private Sub DataGridView1_CellClick(sender As Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick Dim i As Integer = DataGridView1.CurrentRow.Index Me.lblGridName.Text = DataGridView1.Item(0,i).Value Me.lblGridAge.Text = DataGridView1.Item(1,i).Value Dim gb() As Byte = CType(DataGridView1.Item(2,i).Value, Byte()) Dim stm As New MemoryStream(gb) Me.PictureBox1.Image = Image.FromStream(stm) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)