Hello Goran,
Here is some code to get to you started. Make sure the column you are displaying images in is of type
DataGridViewImageColumn
.
dataGridView1.Rows.Add(null, "some text");
dataGridView1.Rows.Add(null, "");
dataGridView1.Rows.Add(null, "some text");
dataGridView1.Rows.Add(null, "");
foreach (DataGridViewRow row in dataGridView1.Rows)
{
string val = row.Cells["Column2"].Value.ToString();
if (val == "")
row.Cells["Column1"].Value = pictureBox1.Image;
else
row.Cells["Column1"].Value = pictureBox2.Image;
}