UseColors Property

Gets or sets whether custom colors specified for this column will override the colors inherited from the grid. The default setting for this property is False.

object.UseColors as Boolean

Use

The default setting for this property is False. When set to False, any BackColor and ForeColor properties set for the underlying grid control will be inherited by all columns, and any custom column-specific colors set either in Designer or at Runtime will be ignored.

To apply a custom ForeColor and/or BackColor to a specific column, set this property to True.

This property provides a simple way of switching custom colors on and off dynamically at runtime. By specifying custom BackColor and ForeColor properties for a column in Designer, those custom colors can be applied dynamically by turning the UseColors property On.

See Also

DataBackColor property | DataForeColor property | DataAltBackColor property | DataAltForeColor property | EntryBackColor property | EntryForeColor property | HeadingBackColor property | HeadingForeColor property | UseHostColors property

Applies To

Column object


© 2004-2021 looksoftware. All rights reserved.