Back to Devexpress

GridControl.UseDisabledStatePainter Property

windowsforms-devexpress-dot-xtragrid-dot-gridcontrol-a6830323.md

latest1.7 KB
Original Source

GridControl.UseDisabledStatePainter Property

Gets or sets whether the control is painted grayed out, when it’s in the disabled state.

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Appearance")]
public bool UseDisabledStatePainter { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property UseDisabledStatePainter As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the control is painted grayed out, when it’s in the disabled state; otherwise, false

|

Remarks

When the control’s Enabled property is set to false and the UseDisabledStatePainter option is set to true , the control is painted grayed out. If the UseDisabledStatePainter property is set to false , the control is painted as if it’s not disabled. However, an end-user cannot manipulate the control in either case.

See Also

GridControl Class

GridControl Members

DevExpress.XtraGrid Namespace