ctodx

This Blog

News

Favorite Posts

Archives

WinForms Default Settings: Some changes afoot in v17.1

Default settings: they can be a force for good and then quite quickly they can be a right royal pain. After all, when we supply some advanced functionality as part of our suites and controls, it’s good to have a reasonable default setting for the new property or behavior. The issue then becomes what happens when we add some more behavior and suddenly the current default setting is no longer the optimal or better one. What to do? Alter it and have it result in some breaking change in your app? Mmm.

Wrenchv17.1 of the WinForms suite of controls brings numerous new features, features that we are starting to describe in blog posts. As part of these new, and we hope, better features, we’re changing some default settings. First, let me list the changes I’m talking about, and then I’ll describe how we’re going to mitigate them.

  • With the Data Grid, Vertical Grid and Tree List end-users will be able to modify unbound columns' expressions by using the advanced Expression Editor dialog, which supports auto- completion and syntax highlighting.
  • Automatic filtering rows for Data Grid and Tree List now allow end-users to change the filtering condition from the default "Equals" (or "Like") to any other condition, e.g. "Starts With" or "Is Not Like".
  • Data Grid now prefers speed rather than absolute precision when calculating the best widths for columns.
  • Excel-inspired filtering menus are now the default filters for Data Grid and Tree List controls.
  • End-users can now hold the "Ctrl" key when dragging Data Grid column headers to the group panel. This allows end-users to apply joint data grouping by multiple columns at once.
  • The default Ribbon style is now "Office 2013".
  • Tree List control now enables filtering and shows its Find panel out-of-the-box.

I’m sure that you’ll agree that these changes and defaults are very beneficial to your users, but I’m sure there are occasions when you’d rather introduce such changes in a step-wise fashion over a period of time rather than just have them all suddenly appear when you upgrade to v17.1. For new apps, sure, have at it, let’s use them all.

To help you out, we have also added a new static property: DefaultSettingsCompatibilityMode. To revert all these defaults to their previous values in one go, simply change this property value from Latest to v16. (Refer to this documentation article to see the complete property list this setting affects.) I’m sure you can see where this is going in the future: adding other enumeration values for later version numbers to revert defaults back to a known point.

Published Apr 21 2017, 10:01 AM by
Bookmark and Share

Comments

Heiko Mueller

Very good idea and useful changes...

April 21, 2017 11:26 AM

Del W

Only one question, when is 17.1 coming out?

April 21, 2017 12:39 PM

John Fedak

> Data Grid now prefers speed rather than absolute precision when calculating the best widths for columns.

Hoping this is coming to the Tree and Pivot soon.  (And would love a configurable timeout on all the bestfits)

April 21, 2017 2:08 PM

About Julian Bucknall (DevExpress)

Julian is the Chief Technology Officer at Developer Express. You can reach him directly at julianb@devexpress.com. You can also follow him on Twitter with the ID JMBucknall.
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners