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
4028
Different band caption for different rows children
posted

I'm using the UltraGrid to show two levels of data. The first is the "master" grid, which is just a basic grid. The second is the sub data, which is displayed when you expand each row by clicking on the litle cross (in a second band).

The contents of the sub data band is not consistant. It can be loaded differently for each row of the master grid, showing very different data for each row. In order to let the user know what is in the sub data band, I hope to be able to change the caption of the band header for each row (of the primary data). So they expand one row, they might see the caption "Customers", they expand another row and it might say "Suppliers".

Is this possible? IF so, how. I cant see anything int the ChildBands property to allow me to do this.

Thanks.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The UltraWinGrid does not support heterogenous data sources. In other words, all of the columns in the band have to be the same. So the only way to get a different set of columns to show up under different parent rows in the same band would be to have multiple child bands and this will likely cause a serious performance issue - depending on how many bands you are using.

    Anyway, it's not entirely clear to me exactly what your requirements are. If you don't need different columns under each parent row and you just want the change the band header text based on the parent row, then there's no property for that, but you could achieve is using a CreationFilter to change the text of the TextUIElement in the header.

Children