Greetings,
I have recently upgraded from v7.2 to v9.1.20091.2039 of the Infragistics framework, and now my UltraGridColumnChooser controls in my winform apps no longer allow me to select the columns that are also being used in the GroupBy collection of the UltraGrid. The group-by columns do appear in the column chooser, but I cannot check them.
This definitely was working in v7.2, and is no longer working in v9.1. Any help would be greatly appreciated.
Thanks,
Tristan
Well I believe I can answer my own question. It would appear there is a setting in the grid's DisplayLayout Override options called GroupByColumnsHidden that is now defaulting to true with the new version. By setting this to false, I am able to select the group-by rows in the column chooser.
Unfortunately, my application allows the user to store their own customized layouts as serialized XML. When these previously saved layouts are loaded into the grid now, the default for that option is applied, and the columns are not selectable in the chooser. Can anyone explain why the default for this would've changed in the new version?
Thanks,Tristan
Hi Tristan,
I took a look and the default of this property have never been changed. It has always defaulted to true when using a standard layout and false when using RowLayouts. So perhaps your application was using RowLayouts before and is no longer doing so?
Check the RowLayoutStyle property on the band or the UseRowLayouts property (which is now obsolete).
Hi Mike,
Thanks for the follow-up. I was not using Row Layouts at all. Just for your reference, I threw together a sample app to demonstrate what I'm seeing. If you add references to v7.2, you'll be able to add the group-by column from the column chooser, but with references to v9.1 you cannot.
The majority of this is the auto-gen code from the designer, but I figured I'd just include everything for a working example:
Any chance you can simply attach a sample project here?
Breaking up this code into the appropriate files and building a probject around it will be a nightmare. :)
Mike,
No need to break anything up. Just create a new winform project, and replace the entire contents of Program.cs with that code.
-Tristan
Hi,
I ran your sample and I am able to duplicate the problem. It seems to work fine in v8.3, but not in v9.1, so this must have been broken by a fix for some other issue.
I've forwarded this thread over to Infragistics Developer Support so they can check it out.
Understood. Here's a sample project with the same code.
Thanks!Tristan
Yes, that works, but then you can't open the form designer and it makes for a very confusing project that's difficult to work with. modify, or debug.