default image on DGV cell
I have a DGV that is connected to a dataset from a inbuilt vb database
I have 3 columns that are images i have set the default image for these in the edit columns box but when i load the form the default image in these 3 columns
are still the standard red cross images not my chosen default images
Each row has 5 columns here is a lay out just incase it helps someone explain a answer for me
1 = image
2 = varchar
3 = varchar
4 = image
5 = image
So how can i set these 3 image Columns default image.
Re: default image on DGV cell
Black mark against your name for not taking 30 seconds to read the documentation:
Quote:
Originally Posted by MSDN
The Image property specifies an image that is displayed in cells with no values when the column is not data-bound and the cell's ValueIsIcon property is set to false. For a data-bound column whose cells do not have an associated image, a standard error graphic is displayed.
That said, I just tried setting the Image property of image columns in an unbound grid (both in the designer and in code) and the same thing happens, so either there's something I'm missing or the documentation is lying.
Re: default image on DGV cell
I believe it may be a BUG lol
I did read the documentation i just thought the whole part of
Quote:
For a data-bound column whose cells do not have an associated image, a standard error graphic is displayed.
meant you could associate a image to the cell some how