Hello,
I have set up a grid with several groups. The user is able to hide or show columns with a column chooser. My problem is when they decide to hide all columns in a group: the group header is still visible and I would like it to disappear.
Is there a property somewhere that tells the grid to hide a group (and especially the group header) when all its columns are hidden? Or do I have to do it manually?
Regards,
Damien
Hi Damien,
I'm not sure I'm following you. If the user hides all of the columns, then no group would have any columns. So you would have to hide all of the rows in the grid.
If that's what you want, then no, there's no automatic way to do that, you would have to do it in code.
Hi Mike,
Not that's not what I meant... I'll try to illustrate it with an example. In my grid, I have say 4 columns: A1, A2, B1 and B2. Columns A1 and A2 are in group A, B1 and B2 in B. I have this:
| A | B | | A1 | A2 | B1 | B2 |
For some reason, the user wants to hide B1 and B2. Currently, on my application, if the user does that, columns B1 and B2 (and their headers) disappear, but not the group header. I have this:
| A | B | | A1 | A2 |
What I want is the group header to disappear as well and have this:
| A | | A1 | A2 |
I hope this helps you to understand better what I mean...