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
1035
Cant hide template column in webhierarchical data grid
posted

I want to hide the first column in my WHDG, in code, when a certail condition occurs. I have a checkbox inside a template field as the first column. I have tried the following;

 

WebHierarchicalDataGrid.Columns(0).Hidden = True

 

 

 

This doesnt make any change at all when the page is loaded. The column is still visible.

I am using the grid to display a flat table with grouping allowed for certain columns (not the chkbox templated column of course).

Anyone have a clue as to how I can get this to work?

 

 

 

 

 

Parents
No Data
Reply
  • 33839
    posted

    Hi hogleg,

    Does hiding any other columns work?  Or does it work if you hide it from the aspx?  I know I've seen cases where column hiding does not work properly if the head does not have runat="server".  Could you check that?  Let me know.

    regards,

    David Young

Children