08-16-2013, 12:11 PM
i am trying to get images in a column in a datagridview but i cant get it.
this is my line to add a row in datagridview:
dataGridView1.Rows.Add("String", (Image)GetEmpty(), - 1, "None", -1);
and this is my GetEmpty() function:
private Bitmap GetEmpty()
{
Bitmap bmp = new Bitmap("Images/Empty.png");
return bmp;
}
but when i run my program and click on an item from a listbox, i get this:
2
Could anyone help me please?
Thanks in advance.

