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.
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.
Brian Fallon"]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.
It's not that kind of 'error' :-))It just represents a value.
Brian Fallon"] 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.
I'am going to try !Thanks !
Great !!! Found that i can use the ValueBasedAppearance image property !!
Works fine. !
What's the best event to display an icon related to the value.(shows an icon depending on the value)