I am in Column Layout Mode and have AllowColSizing set to Syncronized. It works fine when no columns are in Groups but when I put all Band[0] columns into their respective groups when I re-size the group only Band[0] is syncronized with the group and Band[1] doesn't move. In fact it breaks Column sync all together. Whats the deal?
-Ken
Hi Ken,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Let me know if you have any further questions.
Sincerely,DimiDeveloper Support Engineer, MCPD Infragistics, Inc.www.infragistics.com/support
I don't know what procedure you followed or how you ended up using Groups and Levels, but there's nothing in the grid or the designer that would ever change this property for you as far as I know.
If you pick the first item, you will get a grid with RowLayoutStyle = ColumnLayout. If you pick Groups and Level, you will get a grid with RowLayoutStyle = None.
Attempting to add a group should never automatically change the RowLayoutStyle. If you choose the first item, so that you are using a ColumnLayout, then you will never get the screen you showed here - you will instead get the Layout Wizard and it will not allow you to add groups since they are unsupported in that style.
It's possible I am wrong about this - I never use the designer myself, I prefer to do everything at run-time. But if the designer is changing the RowLayoutMode on you, it should at least be informing you that it did so. If not, I'd consider that a bug.
Hey,
I just wanted to let you know, I am being "Matter of fact" and not combative at all....forums are so impersonal that sometimes the message seems harsh and it isn't.
I understand that when I used groups, synchronize wouldn't work. That is fine with me. Now, I know its a limitation. I also wanted to communicate how my personal work flow led me to believe it was possible. Basically when I was able to set RowLayoutStyle to ColumnLayout and then Add a group, nothing telling me doing so caused RowLayoutStyle to change to None.
Anywho, thanks for all info...good stuff :)
Hi Mike,
Some of what your stating above has some variants that fail depending on the process the end user follows.
I know that "RowLayoutStyle.ColumnLayout" maps to the first item but it also maps to "Use Groups and levels". A user can manually go into the designer at the Band level and change RowLayoutStyle from "None" to "ColumnLayout" or to "GroupLayout". I changed it to ColumnLayout.
So, now I am in ColumnLayout AND "Use Groups and levels" is selected. And you get access to the screen I posted, where you can "Add a Group" (I hope your seeing the confusion here).
Once a Group is added my setting changes back to None but you aren't informed that the designer changed it back on you. There is definitely a bug in the designer here.
Either don't have ColumnLayout accessible when "Use Groups and levels" is selected OR warn the user that their RowlayoutStyle is about to change when they add a group.
As far as the layout I need....I guess your Grid doesn't support Groups with multiple Band synchronization...kind of unfortunate.
Hi,
Okay. In the grid Designer, the options are presented like this:
Choose the column arrangement method you would like to use:
If you are using an older version of the grid, then the middle option might not be available, since that was just added recently.
The only way to get to the screen you are displaying here is to pick the third choice: "Use Groups and Levels". This equates to a RowLayoutStyle of None (or UseRowLayouts == false).
The first choice on the list maps to "RowLayoutStyle.ColumnLayout", which is what you wrote that you are using. I think maybe when you wrote "ColumnLayout", you were just trying to describe the behavior you wanted, maybe without realizing that "ColumnLayout" is an actual value of the RowLayoutStyle enum. So I think that's where the confusion arose. :)
Anyway, it looks like the grid does not do any kind of synchronization between bands once you are using groups. So there's no built-in way to achieve what you want here using two bands.
I don't know anything your application or your data, of course. But from the screen shot of your columns and rows here, it looks like you might be able to use OutlookGroupBy to get this look. Would it be possible for you to put all of your data into a single table, so that there is only one band in the grid, and then use OutlookGroupBy to group the data into a hierarchy? If so, it would look very much like what you have here and since there would only be one band, there would only be one set of groups and columns.
Another possibly option is for you to try to set the column widths in code and synchronize them yourself, but this is would probably be pretty tricky.