Using C# and Webforms, the code below:
DataGridViewImageColumn img = new DataGridViewImageColumn();
string path = "path" + file;
Image image = Image.FromFile(path);
img.Image = image;
img.HeaderText = "Picture";
img.Name = "picture";
You can add the image(s) to the
Cells like this:
dataGridView1[yourColumn, yourRow].Value = Image.FromFile(path);
Of course you can use any other image source.. This way you can load different images to each
Note: If you really only want to add the same image to each
Row you can do that with your code, but you need to add real rows.
It will not show in the last row, when
AllowUserToAddRows is on but will show on all other rows you add..