Syncfusion.Grid.Windows
Example 


NegativeColor Property (GridCurrencyEditInfo)

Gets or sets this property specifies the fore color when the current value is negative.
Syntax
'Declaration
 
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("Gets/Sets the forecolor when the current value is negative.")>
<BrowsableAttribute(True)>
<CategoryAttribute("Appearance")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)>
Public Property NegativeColor As Color
'Usage
 
Dim instance As GridCurrencyEditInfo
Dim value As Color
 
instance.NegativeColor = value
 
value = instance.NegativeColor
[NotifyParentProperty(true)]
[Description("Gets/Sets the forecolor when the current value is negative.")]
[Browsable(true)]
[Category("Appearance")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public Color NegativeColor {get; set;}
Remarks
You can customize the look and provide feedback to the user by defining a different color for the negative numbers.
Example
This example shows how to use NegativeColor property.
this.gridControl1.TableStyle.CurrencyEdit.NegativeColor = Color.Red;
this.gridControl1.TableStyle.CurrencyEdit.NegativeColor = Color.Red;
AssemblyVersion

Syncfusion.Grid.Windows: 17.1460.0.47

See Also