Hi,
I have tested on my side. Unfortunately, I can’t reproduce.
In form1:
private void Form1_Load(object sender, EventArgs e)
{
GetData();
dataGridView1.DataSource = dt1;
ImageList imgList = new ImageList();
imgList.Images.Add(Image.FromFile(@"C:\Users\v-lingw\Desktop\smile.gif"));
dataGridView1.Rows[0].Height = 50;
dataGridView1.Rows[0].Cells[0].Value = imgList.Images[0];
}
Show form1 in form2:
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
Form1 f = new Form1();
f.MdiParent = this;
f.Show();
}
}
DataGridView still show the image.
I think I must miss something. Could you please provide more details or make a demo project for us to test? Please upload your demo project to some server and offer us the URL. Skydrive (http://skydrive.live.com/ ) may be a good option. You can sign up 25GB free space only with your Windows Live Passport.
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.