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
675
UltraGrid group by multiple columns
posted

My grid has the following columns:

Codenumber | Price | Component | Qty

123                  10        ABC             1

123                  10        DEF              2

123                  10        GHI                3

456                   50        JKL               4

456                   50        MNO             5

I need to group by codenumber and price, but they should both be on the same line. It shouldn't go from Codenumber down to price and then down to component and qty. Codenumber and price should be 1 group.

I also need to do this in code since I am supplying the datasource at runtime and can have different columns. Depending on the columns I may not want to group it this way.

Is there some kind of property to set this or code that can group it this way?

I appreciate any help. Thank you.

Parents Reply Children