I have an object with three fields (Time, Units, and dollars) . I need them to show up in columns but I need them to show up in the grid 13 times (for 13 weeks). Each week would have its own header with the Time, Units, and dollars as columns within that week.
What is the best way to make this happen? We don't use datasets but class objects. I tried having an object with WeekOne, WeekTwo, etc properties that were Lists of my field object but that didn't work.
Any ideas are appreciated.
thanks
-Ken
Never mind, I found it! There is an Add Group right in the designer....thanks again.
To be honest I'm a bit rusty on how those different layout modes work, but UltraGridBand exposes a Groups collection, to which you can add members, and then assign columns to the different groups. This causes a header to be displayed above the column headers, encompassing the columns that belong to that group..
Thanks for the quick answer Brian. You are correct in understanding my explanation. I already made an object last night (WeekDetail) that contains 13 weeks worth of properties :-\
I was hoping there was a different way.
Can you answer me this, too?
I need a Group Column header above each set of properties that has the weeks caption. I know how to add a group in RowLayout mode but I need to stay in Column Layout mode so Columns stay Synchronized with both bands 0 and 1. While I am in Column Layout mode how can I add a group and add specific columns to that group.
thanks again
kvillines said: I tried having an object with WeekOne, WeekTwo, etc properties that were Lists of my field object but that didn't work.
If your design requires that the user see those three columns repeated for each of the 13 weeks, you would have to create some kind of proxy object that has 39 properties (time/unit/dollars for each of the 13 weeks) and assign a list of those to the grid's data source.