Version Compatibility: Default Property Values
- 6 minutes to read
DevExpress version updates introduce new features that may change a control’s default behavior. When you migrate to a new version, you can revert these changes to the previous version using the WindowsFormsSettings.DefaultSettingsCompatibilityMode static property. Set this option at application startup.
namespace WindowsFormsApp1 {
static class Program {
[STAThread]
static void Main() {
DevExpress.XtraEditors.WindowsFormsSettings.DefaultSettingsCompatibilityMode = DevExpress.XtraEditors.SettingsCompatibilityMode.v16;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
All of the latest changes are in effect if the WindowsFormsSettings.DefaultSettingsCompatibilityMode property is set to Latest.
Version 16
The table below illustrates which properties and behaviors change if you set the WindowsFormsSettings.DefaultSettingsCompatibilityMode property to v16 (in comparison to the Latest mode).
Control | Affected properties and features | Behavior | |
---|---|---|---|
v16 | Latest | ||
ColumnViewOptionsBehavior.UnboundColumnExpressionEditorMode | End-users invoke the standard Expression Editor dialog. | End-users invoke the advanced Expression Editor dialog, which supports auto-completion and syntax highlighting. | |
In Data-Aware Export Mode (when the XlsExportOptionsEx.ExportType / XlsxExportOptionsEx.ExportType property equals DataAware), the XlsExportOptionsEx.GroupState and XlsxExportOptionsEx.GroupState properties do not depend on the current GridOptionsPrint.ExpandAllGroups and TreeListOptionsPrint.PrintAllNodes property values. GroupState properties are initially set to Default, and groups within an exported Excel document are expanded or collapsed based on their current state within a Data Grid or Tree List. | In Data-Aware Export Mode, if the GridOptionsPrint.ExpandAllGroups and TreeListOptionsPrint.PrintAllNodes properties are true, the XlsExportOptionsEx.GroupState and XlsxExportOptionsEx.GroupState properties’ Default values are equivalent to ExpandAll. Otherwise, the Default setting checks the current group (node) state within a control (equal to the legacy behavior). | ||
GridOptionsFilter.AllowAutoFilterConditionChange OptionsColumnFilter.AutoFilterCondition TreeListOptionsFilter.AllowAutoFilterConditionChange TreeListOptionsColumnFilter.AutoFilterCondition | End-users cannot modify filter conditions when utilizing the Data Grid and TreeList automatic filter rows. As a developer, you can manually select the desired condition via the OptionsFilter.AutoFilterCondition property for a Data Grid or Tree List column. | In Data Grid and TreeList controls, automatic filter rows display buttons that allow end-users to change the filter expression operator. End-users are limited to a specific set of conditions, depending on the column data type and filter mode (the GridColumn.FilterMode and TreeListColumn.FilterMode properties). For instance, end-users cannot select conditions such as “Begins with…” for numeric columns by default. The same limitations apply to developers. If you switch the OptionsFilter.AutoFilterCondition option to BeginsWith for a numeric column, it has no effect unless you change this column’s filtering mode to DisplayText. | |
Best fit operations prefer calculation precision. | Best fit operations prefer calculation speed. | ||
Simultaneous grouping by multiple columns is disabled. | Simultaneous grouping by multiple columns is enabled. | ||
Find panel is not available by default; the Ctrl+F shortcut does not invoke this panel. | Find panel is available. | ||
Filtering in Tree List is disabled by default. | Filtering in Tree List is enabled by default. | ||
The Default filter mode is equal to FilterMode.Standard. | The Default filter mode is equal to FilterMode.Extended. | ||
Rows do not generate automatically. | Rows generate automatically. | ||
WindowsFormsSettings.ColumnFilterPopupMode ColumnViewOptionsFilter.ColumnFilterPopupMode TreeListOptionsFilter.ColumnFilterPopupMode | Controls display standard filter dropdown menus. | Controls display Excel-style filter dropdown menus | |
In Excel-style filter dropdowns, the “Show Empty” items are hidden. | In Excel-style filter dropdowns, the “Show Empty” items are visible. | ||
The Default style applies the RibbonControlStyle.Office2007 style. | The Default style applies the RibbonControlStyle.Office2013 style. | ||
When focused, certain in-place editors (CheckEdit, RadioGroup, TrackBarControl and PictureEdit) do not have a transparent background. | When focused, these editors have a transparent background. | ||
Title bar skinning | To enable form title bar skinning, you need to call the SkinManager.EnableFormSkins method manually before the form is created. | The SkinManager.EnableFormSkins method is called automatically, and you need to call the SkinManager.DisableFormSkins method to revert it. | |
Version 17.1
The table below illustrates which properties may change if you set the WindowsFormsSettings.DefaultSettingsCompatibilityMode property to v17_1 (compared to the Latest mode).
Control | Affected properties | Behavior | |
---|---|---|---|
v17_1 | Latest | ||
RepositoryItemPopupContainerEdit classes and their descendants | RepositoryItemPopupContainerEdit.PopupWidthMode | The Default property value is equal to the ContentWidth value. | The Default property value is equal to the UseEditorWidth value. |
A column width does not exactly match the Width property value. | The Width property specifies the exact column width. | ||
A Column’s MinWidth property values changes dynamically when TreeListOptionsView.BestFitNodes is set to Visible. | The MinWidth property has a constant value that depends only on the maximum available node indent. | ||
Best fit operations take more time, but calculate widths more accurately. | Best fit operations prefer calculation speed. | ||
The default property value is false. | The default property value is true. | ||
The VGridControl cannot filter its data. | The VGridControl can filter its data. The VGridOptionsFilter.AllowFilter property is set to true by default. | ||
The VGridOptionsMenu.EnableContextMenu property equals false by default. | The VGridOptionsMenu.EnableContextMenu property equals true by default. | ||
You can manually enable Aero glass effects for a RibbonForm that contains a Ribbon, whose RibbonControl.RibbonStyle property is set to Default. | If a RibbonForm contains a Ribbon with the Default RibbonControl.RibbonStyle property value (which is interpreted as Office2013), you cannot enable Aero glass form effects. |
Version 17.2
The table below illustrates which properties may change if you set the WindowsFormsSettings.DefaultSettingsCompatibilityMode property to v17_2 (in comparison to the Latest mode).
Control | Affected properties | Behavior | |
---|---|---|---|
v17_2 | Latest | ||
Filter Editor Control embedded in data-aware controls (GridControl, TreeList and VGridControl) | - | The data-aware controls use the legacy FilterEditorControl (from the DevExpress.XtraRichEdit library). | The data-aware controls use the advanced FilterEditorControl (from the DevExpress.DataAccess.UI library), which supports syntax highlighting and auto-complete in the filter editor’s Text panel. You can also switch to the legacy Filter Editor Control via the WindowsFormsSettings.UseAdvancedFilterEditorControl static setting. |
Look-and-feel settings for the following controls are handled by the BarAndDockingController component: Bars (BarManager), dock panels (DockManager), Ribbon UI (RibbonControl and BackstageViewControl), App UI Manager (DocumentManager) and tabbed windows (XtraTabbedMdiManager). | The look-and-feel of these controls when they are placed onto skinnable forms (XtraForm and its descendants - RibbonForm, TabForm, FluentDesignForm, etc.) | The controls do not take into account the form’s look-and-feel settings (XtraForm.LookAndFeel). To specify the look-and-feel settings for these controls within a certain form, place a BarAndDockingController component onto the form. | The controls take into account the form’s look-and-feel settings (XtraForm.LookAndFeel) if the form does not contain a BarAndDockingController component. |
Bars and Ribbon controls | BarManagerProperties.ScaleEditors, RibbonProperties.ScaleEditors and RibbonProperties.ScaleGalleryItems properties | The default value is false. | The default value is true. |
LayoutControl and DataLayoutControl control | OptionsView.UseParentAutoScaleFactor property | The property’s default value is false. | The property’s default value is true. |