GridFormatConditionColorScale.MaximumColor Property
Specifies a color applied to a cell with the maximum value.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
Color | String.Empty | A Color object that specifies the cell color. |
Remarks
When the GridFormatConditionColorScale.Format property is set to Custom, you can specify a custom scale that will be used to color cells.
To specify scale colors, use the following properties.
- MaximumColor - specifies a color for a cell with the maximum value.
- GridFormatConditionColorScale.MiddleColor (optional) - specifies the middle color.
- GridFormatConditionColorScale.MinimumColor - specifies a color for a cell with the minimum value.
Example
protected void Page_Load(object sender, EventArgs e)
{
CardViewFormatConditionColorScale Format1 = new CardViewFormatConditionColorScale();
Format1.FieldName = "Discount";
Format1.Format = GridConditionColorScaleFormat.Custom;
Format1.MinimumColor = Color.Green;
Format1.MaximumColor = Color.Red;
Format1.MiddleColor = Color.Orange;
ASPxCardView1.FormatConditions.Add(Format1);
}
See Also