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
380
How to hide column in child band in code-behind
posted

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

Parents
  • 33839
    posted

    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 

Reply Children