GridView styling (CSS classes) disappears

Posted by ProfK on Stack Overflow See other posts from Stack Overflow or by ProfK
Published on 2010-02-18T05:49:32Z Indexed on 2010/03/23 11:03 UTC
Read the original article Hit count: 257

Filed under:
|

I'm migrating a large number of stand-alone pages into content pages. Most of this involves little more than copying and pasting a GridView from one page into the new page. However, I find that styling disappears in the new project, i.e. the styles (as classes) are still present in the stylesheet, but these classes are no longer applied to GridView table elements.

Example, in the old project, once a table is rendered by the GridView, its header row has a class of HeaderStyle, but in the new project this is lost, without any editing of the GridView. Is there some mysterious, built-in mechanism that automatically applies these attributes to GridView elements that I have somehow disabled?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview