IconSetFormatCondition Class
Represents an icon set format condition.
Namespace: DevExpress.Mobile.DataGrid
Assembly: DevExpress.Mobile.Grid.v18.2.dll
Declaration
Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.
An icon set format allows you to classify column cell values into several ranges, assign an icon to each range, and display a specific icon in a cell based on the cell value.
Example
This example demonstrates how to apply an icon set conditional formatting rule to the Total column in a GridControl.
- Create a new
IconSetFormatCondition
class instance. - Set this object’s FormatConditionBase.FieldName property to Total. This column provides values to test against the formatting rule and the specified format will be applied to this column.
- Assign one of the predefined icon sets to the FormatConditionBase.PredefinedFormatName property. All available format names are listed in the Predefined Format Names document.
- To apply a conditional formatting rule represented by the created IconSetFormatCondition object, add this object to the GridControl.FormatConditions collection.
using DevExpress.Mobile.DataGrid;
// ...
IconSetFormatCondition condition = new IconSetFormatCondition();
condition.FieldName = "Total";
condition.PredefinedFormatName = "Signs3IconSet";
grid.FormatConditions.Add (condition);
Inheritance
Object
FormatConditionBase
IndicatorFormatConditionBase
IconSetFormatCondition
See Also