Version Compatibility: Default Property Values
- 5 minutes to read
DevExpress version updates introduce new features that may change particular controls’ default behavior. When you migrate to a newer DevExpress controls and components version, you have an option to revert these features to the previous version using the static WindowsFormsSettings.DefaultSettingsCompatibilityMode property.
using System;
using System.Windows.Forms;
namespace WindowsFormsApp1 {
static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
DevExpress.XtraEditors.WindowsFormsSettings.DefaultSettingsCompatibilityMode = DevExpress.XtraEditors.SettingsCompatibilityMode.v16;
Application.Run(new MainForm1());
}
}
}
All the latest changes are in effect if the WindowsFormsSettings.DefaultSettingsCompatibilityMode property equals Latest.
Version 16
The table below illustrates what properties may change if you set the WindowsFormsSettings.DefaultSettingsCompatibilityMode property to v16 (compared to the Latest mode).
Control | Affected properties | Behavior | |
---|---|---|---|
v16 | Latest | ||
ColumnViewOptionsBehavior.UnboundColumnExpressionEditorMode | End-users invoke the standard Expression Editor dialog. | End-users invoke the advanced Expression Editor dialog that 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 set to Default by default, and groups within an exported Excel document are expanded or collapsed depending on their current state within a Data Grid or Tree List. | In Data-Aware Export Mode, if the GridOptionsPrint.ExpandAllGroups and TreeListOptionsPrint.PrintAllNodes properties equal true, the XlsExportOptionsEx.GroupState and XlsxExportOptionsEx.GroupState properties’ Default value is equivalent to ExpandAll. Otherwise, the Default setting checks the current group (node) state within a control (same as in legacy behavior). | ||
GridOptionsFilter.AllowAutoFilterConditionChange OptionsColumnFilter.AutoFilterCondition TreeListOptionsFilter.AllowAutoFilterConditionChange TreeListOptionsColumnFilter.AutoFilterCondition | End-users cannot modify filtering conditions when utilizing the Data Grid and TreeList automatic filtering rows. As a developer, you can manually select the desired condition by utilizing the OptionsFilter.AutoFilterCondition property for a Data Grid or Tree List column. | Automatic filtering rows for Data Grid and TreeList control display buttons that allow end-users to change the filtering expression operator. End-users are limited to a particular 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 like “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. | ||
Grouping by multiple columns at once is disabled. | Grouping by multiple columns at once 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. | ||
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. | ||
none | 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 what 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. | ||
Columns’ MinWidth property values change dynamically when the TreeList.BestFitVisibleOnly setting is enabled. | The MinWidth property has a constant value that depends only on the maximum available node indent. | ||
Best fit operations prefer calculation precision. | 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 equals 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 equals 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. |