Dim i As Integer i = DataGridView1.CurrentRow.Index TextBox1.Text = DataGridView1.Item(0, i).Value IDTextBox.Text = DataGridView1.Item(1, i).Value
n now i would like to add image oso,its can b saved and can be show in datagridview.
so i added this code,but i got an error (Unable to cast object of type 'System.Byte' to type 'System.Drawing.Image'.)
i noe this is the BYTE problem,but i just cant solve.......thanks in advance...
picturebox1.image = DataGridView1.Item(2, i).Value