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
770
How to have different bands from 1 row to another
posted

Hello, I have troubles with my Infragistics Ultragrid.

I am trying to make this kind of grid:

ROW1

      |_A  |  B  |

ROW2

      |_C  |  D  |

 

In this grid, my child band can have different columns depending the First Band's first column's name.

 

I can'd figure out how to do it because when I change my second row childband, the first row's child band automaticaly synchronize.

I tryed to put A, B, C and D columns in the same band and:

- change the columns size

- hide the colums I don't want

In both cases it synchronise with the other rows.

I tryed to put A and B in a first band and C and D in a second one.

When I hide one of those childBands, it is hidden the other rows too.

Anyone could please help me?

 

PS: sorry for my poor English.

Parents
No Data
Reply
  • 469350
    Offline posted

    The grid only supports binding to a homogenous data source. You cannot have a band with different columns under each parent row.

    So one thing you could do is set up your data source with three bands. The root band would remain the same, but it would have two child bands with different sets of columns. Then each parent row would only have child rows in one band or the other but not both.

     

Children