C# Winform, display image column by URL.

How can I display image column with URL in datagridview.
Ex: Cell value: \\\image.jpg  --> display image in cell, not hyperlink.

Please help me!
Who is Participating?
Jacques Bourgeois (James Burger)Connect With a Mentor PresidentCommented:
System.Net.WebClient webSource = new System.Net.WebClient ( );
byte[] data = webSource.DownloadData ( "  ");
System.IO.MemoryStream pipe = new System.IO.MemoryStream(data);
Image jpgImage = Image.FromStream(pipe);

Open in new window

Then use the the code referenced in my last post to display jpgImage.
Jacques Bourgeois (James Burger)PresidentCommented:
The display of images in the DataGridView is described in the framework documentation at http://msdn.microsoft.com/en-us/library/2ab8kd75.aspx
JameMeckAuthor Commented:
How to display this string: \\\image.jpg  to Bitmap?
JameMeckAuthor Commented:
Thanks! I got it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.