I just started to use asp.net 2.0 and added a GridView in a page. Although I set the property of the GridView header, the format of the header did not change at all. I spent two hours and evetually figured out why. When .net 2.0 rendered the page, the header of the GridView was put into "<th>" tag. I happened to have "<th>" defined in the CSS file, but I never used it.
So I deleted the "<th>" from the CSS file and then the format of GridView took effect.
It seems that formating defined by style overwrites formating defined through the property sheet of the control.
Could anyone provides me some documentation on this?
Thanks in advance.
Seaport
So I deleted the "<th>" from the CSS file and then the format of GridView took effect.
It seems that formating defined by style overwrites formating defined through the property sheet of the control.
Could anyone provides me some documentation on this?
Thanks in advance.
Seaport