Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Group with a group
posted
I'm using a simple Wingrid that has columns for the months of the year (i.e., Jan, Feb, Mar, etc.). I have them in groups of Quarters (Q1, Q2, Q3, Q4). Each month is in its respective quarter. The grid originally had data for only one year, but now it is 2 years. So I need to add another grouping level called "Year". Is it possible to create a Year group, that has 4 quarter groups that each contain their respective month columns? thanks Jim
Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    The standard row layout mode does not support groups within groups. But you could do this by setting RowLayoutMode to GroupLayout. This is relatively new functionality in the grid, so you need to be using a fairly recent release. I recommend using the RowLayout designer at design-time to set up your layout. So what you do is go to the grid designer (click Start on the grid on your form at Design-time), then go to "Band and Column Settings", find the band you want and go to "Column Arrangement Overview" and then select "Use Row Layout with Groups" from the three choices at the bottom.

    If you data source is not available at design-time, you will have to establish the data schema first. Be sure to set the Key of the band and the Key of each column of your schema to the same names that the data source will be using at run-time.

Children