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
215
Column not hidden when project run
posted

Hi all,

I've hidden the ID (primary key) column in my grid. The column is not shown in the visual studio design view, however it appears when run on the local development server, and when published to IIS. Any thoughts? I'm fairly sure its not a cache issue, as other changes are reflected immediately.

 

thanks,

James

Parents
No Data
Reply
  • 275
    Verified Answer
    posted

    Hi James,

    We had a similiar issue until, after spending all day trying to figure out why, we discovered that adding the runat="server" attribute to the <head> tag solved the problem. If the attribute isn't set, then the grid control can't write the CSS for the classes, which perform the hiding of the columns. It would be nice if this was documented as a requirement as some systems (espicially legacy ones) didn't always have this set by default in the templates when creating a new aspx page and therefore it can't be assumed that it already exists.

    Give that a check and/or go and see if it solves your problem.

    Cheers!
    Craig Wilson

Children