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
545
Display an icon in a cell
posted

I'd like to display an icon in a cell based on a cell value.
So if the value is "ERROR" i'd like to display an icon In the same cell before the message (if possible)or in a unbound cell.

Parents
No Data
Reply
  • 69832
    Offline posted

    Note that the grid extends support for the IDataErrorInfo interface, via the UltraGridColumn.SupportDataErrorInfo property. I mention this because when you use this, the grid communicates with the things that implement that interface (like DataRowView I think) and shows a little error image in the cell when there is an error.

    To answer your question, you can use the UltraGridCell.Appearance.Image property to display an image in a cell. By default it will appear on the left side of the cell, but you can use the UltraGridCell.Appearance.ImageHAlign property to change that.

Children