Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
855
How to Clear a Grid Cell Image?
posted

Hi.  My application places an image in a grid cell under certain conditions.  That works great.  Here's the code that sets the image:

row.Cells[variable.Name].Appearance.Image = imgimageListNoData.Images[0];

Could someone please tell me how to clear the image?  When the users enters data into the cell, I'd like to show the data - not the image.

Setting the image value to null isn't working:

row.Cells[variable.Name].Appearance.Image = null;

How is this accomplished?

Thanks.