Log In
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Collapse]eXpressApp Framework
 [Expand]Getting Started
  [Expand]Application Solution Components
   Client-Side Mobile Application
  [Collapse]Business Model Design
    Business Model Design Basics
    Built-in Business Classes for Most Popular Scenarios
   [Expand]Business Model Design with Entity Framework
   [Expand]Business Model Design with XPO
    Non-Persistent Objects
    PropertyChanged Event in Business Classes
   [Collapse]Data Types Supported by built-in Editors
     Key Properties
    [Expand]String Properties
    [Expand]Numeric Properties
    [Expand]Date and Time Properties
    [Collapse]Boolean Properties
      Boolean Properties in XPO
      Boolean Properties in Entity Framework
      Boolean Properties in Domain Components
    [Expand]BLOB Image Properties
    [Expand]Collection Properties
    [Expand]Reference (Foreign Key, Complex Type) Properties
    [Expand]File Attachment Properties
    [Expand]Type Properties
    [Expand]Enumeration Properties
    [Expand]Criteria Properties
    [Expand]Color Properties
     Geolocation Properties
     Miscellaneous Property Types
    Mapping Complex Types to the Database
   [Expand]Types Info Subsystem
    Connect an XAF Application to a Database Provider
    Data Annotations in Data Model
    Create and Update the Application's Database
  [Expand]Application Model
  [Expand]UI Construction
  [Expand]Extend Functionality
  [Expand]Data Manipulation and Business Logic
  [Expand]Security System
  [Expand]System Module
  [Expand]Extra Modules
  [Expand]Debugging, Testing and Error Handling
  [Expand]Application Life Cycle
 [Expand]Design-Time Features
 [Expand]Task-Based Help
  Frequently Asked Questions (FAQ)
 [Expand]API Reference
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
This documentation page describes implementations made in our v17.2 release cycle. To learn about functionality shipping with v18.1, navigate to our updated help file experience at docs.devexpress.com. Learn More

Boolean Properties

In XAF, Boolean and Nullable Boolean properties can be displayed in WinForms and ASP.NET applications through:

XAF Mobile applications use the dxSwitch widget to display Boolean properties.





Refer to the Property Editors | Boolean Properties section in the Feature Center demo installed with XAF to see Boolean Property Editors in action. The Feature Center demo is installed in %PUBLIC%\Documents\DevExpress Demos 18.1\Components\eXpressApp Framework\FeatureCenter by default. The ASP.NET version of this demo is available online at http://demos.devexpress.com/XAF/FeatureCenter/.

Expanded Examples

Expanded WinForms Property Editors for Boolean Properties

Each WinForms Property Editor has a control that displays a corresponding property in a Detail View, and a repository item that displays a property in a List Editor that supports in-place editing. Both the control and repository item are shown below.



  • BooleanEdit - a descendant of the XtraEditors Library's CheckEdit editor;
  • BoolComboBoxEdit - a descendant of the XtraEditors Library's ImageComboBoxEdit editor.

Repository Items:


The BooleanEdit control and the RepositoryItemBooleanEdit repository item are used by default.

The BoolComboBoxEdit control and RepositoryItemBoolComboBoxEdit repository item are used if at least one of the following pairs are specified:

Expanded ASP.NET Property Editors for Boolean Properties

Each ASP.NET Property Editor has controls that display a property in a Detail View's View and Edit mode (see DetailView.ViewEditMode). These controls are listed below.


View mode controls:

Edit mode controls:


Used to display Boolean properties.

The ASPxCheckBox control is used in both View and Edit modes by default.

The ASPxImageLabelControl control and ASPxComboBox controls are used in the View and Edit modes, if at least one of the following pairs are specified:

Expanded Mobile Property Editor for Boolean Properties

The MobileBooleanPropertyEditor property editor uses the Switch control. This control uses the dxSwitch widget to display Boolean properties in the Detail View's View and Edit modes (see DetailView.ViewEditMode).

Is this topic helpful?​​​​​​​