In the above code i am using some enumerators to identify the images easily if you find it difficult to understand try to use this simple code to bind the image:
Assuming that you are storing Image path in the database and trying to bind the image of that path to the datagridview:
If you want path, simply bind the path of file to a column, you can format the image path to image in CellFormatting event, but folloiwing examples assumes your images are in debug/bin folder, since that is the path from where your exe file is, next you should have file name like image.jpg not ~/image.jpg
Private Sub DataGridView1_CellFormatting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
If e.ColumnIndex = 2 Then 'assumed third column is for image change the value based on what column your image need to bind
If e.Value IsNot Nothing And Not TypeOf e.Value Is Bitmap Then
e.Value = Image.FromFile(IO.Path.Combine(Application.StartupPath, e.Value.ToString))
e.FormattingApplied = True
End If
End If
End SubHope this will helps you!
Thanks,