i have tried this code and its not giving the proper image.
Is there any problem with the path ?
Image image = Image.FromFile(@"D:\MHTTest\FinalImages\1.png");
DataGridViewImageColumn ImageColumn = new DataGridViewImageColumn();
ImageColumn.Image = image;
ImageColumn.Name = "Name";
ImageColumn.HeaderText = "Nice Name";
ImageColumn.Width = 200;
dataGridView1.Columns.Add(ImageColumn);
Renjith RPosted Dec 11, 2014, 6:01 AM
Is there any other way to pass image ?
Manish Kumar ChoudharyPosted Dec 11, 2014, 5:45 AM
Renjith RPosted Dec 11, 2014, 5:41 AM
Manish Kumar ChoudharyPosted Dec 11, 2014, 5:13 AM
Renjith RPosted Dec 11, 2014, 5:09 AM
its not in the proper format
just a X symbol
Manish Kumar ChoudharyPosted Dec 11, 2014, 4:55 AM
use
Directory.GetFiles(
Renjith RPosted Dec 11, 2014, 4:45 AM
Manish Kumar ChoudharyPosted Dec 11, 2014, 3:55 AM
Hi Renjith R,
Go through following links it may help you.
http://www.aspdotnet-pools.com/2014/07/bind-and-display-image-in-datagridview.html
http://aspsnippets.com/Blue/Articles/Display-list-of-files-from-Server-folder-in-ASPNet-GridView.aspx