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
455
Is there an easy way to display a cell like this?
posted

Please refer to the image attachment.

Also I want the image displayed in the cell will change according the content of the cell. Is it possible to do that?

Thanks!

  • 69832
    Suggested Answer
    Offline posted

    I can't think of any way to do that using publicly exposed properties; the closest you can get would be to assign the image of the wrench and screwdriver to the cell's Appearance.ImageBackground property, after sizing the cell around that image's size. The problem is that the text would not appear under it, but rather superimposed over it.

    You can do just about anything with the IUIElementDrawFilter interface, which lets you override the default drawing for the control, but even something as simple as this can still require a significant amount of coding. There are articles on our knowledge base that demonstrate the basic approach.