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.

Parents
  • 69832
    Suggested Answer
    Offline posted

    That is the way to clear the image. One possibility is that the same image is specified on an appearance higher up in the resolution hierarchy (for example, on the UltraGridColumn.CellAppearance for that cell's column), so clearing it on the cell makes no difference since they are the same.

Reply Children