Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid Header backcolor not working

Status
Not open for further replies.

aimlion11yahoo

Instructor
Jul 20, 2006
42
US
For the life of me I cannot get the BackColor property to show up. Any suggestions?



Code:
<asp:DataGrid id="DataGrid1" runat="server">
<HeaderStyle ForeColor="#FF8080" BackColor="#333366">
</HeaderStyle>
</asp:DataGrid>
 
This is a known bug.
If you have a stylesheet attached to the page your datagrid is on, and the stylesheet contains a style for the TD element of a table, the datagrid will grab the formatting specified for the TD element, and disregard any formatting you have specified for the DataGrid.
Read all about it at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top