Hi,
I have an issue with hiding columns in Band(1).
In Band(0), hiding a column can be done by:WebHierarchicalDataGrid1.GridView.Columns(0).Hidden = True
So I tried for Band(1):WebHierarchicalDataGrid1.GridView.Band.Bands(1).Columns(0).Hidden = True
But that doesn't work.
Thanks,Andreas
I opened a regular support request for this.
Hi David,
the first thing I do is to hide the default group by-column I defined for the grid in the GroupedRowInitialized event as the data of this column is displayed in the group row and therefore unnecessarily uses up space in the details row. There I use:WebHierarchicalDataGridDetails.GridView.Columns(0).Hidden = TruebecauseWebHierarchicalDataGridDetails.Bands(0).Columns(0).Hidden = Truedoes not work. That's why I tried to go the way over the GridView element also for band 1.
Yes, I want to hide the complete column in all children.
And regarding the event I use to hide the columns in band 1, I tried all that looked promising, but without luck. It is not needed at a special moment in the lifecycle of the page or the control, I just want to hide some columns if some criteria of the logged in user do not match when the page loads.
Regards,Andreas
Hi Andreas,
WebHierarchicalDataGrid1.GridView.Band.Bands(1) should be equivalent to
WebHierarchicalDataGrid1.Bands(1) since the Band of the GridView is the Hiearchical grid itself. But anyway. What event are you trying to call this code? By attempting to set the column hidden on the band, you want the column hidden on all children? Let me know and I'll take a look.
regards,David Young