I am attempting to populate a DataGridView cell with an image. The image is a 32bit png with Alpha Transparency.
I can get this image to display properly in a picturebox or a Listview but in the DataGridView the image loses quality.
I have tried setting various parts of the control to transparent but nothing seems to work. I import the image into resource file and then call it directly.
I have a feeling I need to override the onpaint event to resolve the transparency/color depth issue but I’m not entirely sure.
I would appreciate any help!
The top image is that from a picturebox and the bottom two are in the DataGridView.
*Since I am unable to use an image tag, please see the following link for an example of the problem
http://bytes.com/attachments/attachment/2016d1245038555/imageissue.png
I have tested with a lower resolution gif and it looks acceptable. The PNG I was using is 32-Bit (with 8 bits alpha channel) and I think this is simply out of the depth that the DataGridView Image Column can handle.
Thanks to everyone who offered their input. It is very much appreciated!