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
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.
Hi
I have a very similar problem. I have a grid with a UltraCombo in one column. In the UltraCombo there are only images shown. This works if theUltraCombo is droppeddown. But if I select one item in the combo, in the grid isn't displayed the image,there I see: System.Byte[.
I tried to set the ColumnStyle of the grid column to Image, but then I get an error. How can I make, that in the grid the selected Image is shown?
Best regards
Clay