Hi, i have a DataGridView and I want to have a column (named "Image") that will display an image. But not all of the cells in the column will have an image, only those that are important which will be based on my If...Else statement. What I know is that if i set the whole column will display an image, then a box with a red X mark will be displayed if no icon is associated with it.
Also, I have an ImageList which contains all my images. Unfortunately, when I do this
DataGridView.Rows(0).Cells("Image") = iconsImageList.Images(0) it does not work, it shows the box with a red X mark. Why is this happening?
Also, I have an ImageList which contains all my images. Unfortunately, when I do this
DataGridView.Rows(0).Cells("Image") = iconsImageList.Images(0) it does not work, it shows the box with a red X mark. Why is this happening?