Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image'.
hi i got this error message
Private Sub DataGridView1_RowHeaderMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.RowHeaderMouseDoubleClick
'DataGridView1.DataSource = bs
Dim i As Integer
i = DataGridView1.CurrentRow.Index
txtConID.Text = DataGridView1.Item(0, i).Value
txtLname.Text = DataGridView1.Item(1, i).Value
PictureBox1.Image = DataGridView1.Item(2, i).Value <-here!
End Sub
i have an image datatype i want it when i click the rowheader to be displayed on my picturebox. how can i do this?