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
60
Show image only in column
posted

How to I set a column to only show the image and not the text. I have an image being set in each cell based on it's value (either 1 or 0), but I don't want the 1 or 0 to show up. When I set the

ProductGrid.DisplayLayout.Bands[0].Columns["Sensitive"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Image;

nothing shows up. Any ideas of how to do this simply?

Thank you,

Susan

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Susan,

        The Image Style of the column displays the actual cell value as an image. But your cell values are not images, they are numeric (0 or 1), so this won't work.

         Do you want the cell to act like a checkbox? If so, you could achieve what you want to do using the UltraCheckEditor control in Custom Style.

        Another option would be to use a ValueList and set it's DisplayStyle to Picture.

        Still a third option would be to use a CreationFilter to override the creation of the cell elements.

        It depends what you want - a checkbox, a dropdown, or just a read-only cell.  

Reply Children