Still problems with ISupportInitialize and VS2010 RC

16 March 2010

As part of the check-in process for Code Freeze for the next major release, the WinForms team did some more testing with Visual Studio 2010. And, lo and behold, there were still problems with the code that the designer in VS2010 RC produces. (I talked about a similar problem back in the PDC ’09 timeframe.)

Here’s a simple scenario, using our not-quite-in-beta v2010.1 controls:

  1. Create a new WinForms 4.0 project using the Client Profile (to repro with v2009.9, you’ll have to use the full profile)
  2. Drop an XtraGrid control on the form
  3. Change view type from GridView to LayoutView

If you now check the designer.cs file, you’ll only see one call to BeginInit() for the grid instead of the expected three. Before you say, well, duh, it’s a problem in the grid code, it’s reproduceable with the standard datagrid. Just assign a new datasource, for example, and you’ll have a similar code serialization issue.

In practice what this means is if you open an existing form with a grid, change the view type, and save, you’ll get a form that will cause all kinds of errors when you next open it. It will be hosed, to put it mildly.

Now, all is not lost despite the RTM date for VS2010 only being 4 weeks away. It seems that a later non-public RC release has solved this issue. We are continuing to test our controls with these slip-streamed releases as and when we get them.

So, if you are using VS2010 RC for your production code, please make sure you maintain a strict software check-in policy, so that you can revert to an earlier version in case of problems.

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.