Skip to main content

CheckBoxProperties.AllowGrayedByClick Property

Gets or sets a value that specifies whether a check box can be set to a grayed state by a mouse click.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public bool AllowGrayedByClick { get; set; }

Property Value

Type Default Description
Boolean true

true if end-users can set grayed state by clicking the check box; otherwise, false.


By default, a check box can be set to either the checked or unchecked check state. To enable the third grayed state, set the CheckBoxProperties.AllowGrayed property to true. Set the AllowGrayedByClick property to false, to prohibit end-users from setting the grayed check box state via a mouse click. In this case, you can set a check box to the grayed state programmatically via the ASPxCheckBox.CheckState property on the server side and using the ASPxClientCheckBox.SetCheckState method on the client side.


  • If the CheckBoxProperties.AllowGrayed property is set to false, the AllowGrayedByClick property is not in effect.
  • The AllowGrayedByClick property is not in effect for the radio button.
See Also