Home All Groups Group Topic Archive Search About

DataGrid Color - Annoying feature

Author
20 Jan 2006 5:53 PM
Zean Smith
I created a simple Datagrid with normal <body> tag (background white by
default), the DataGrid shows padding color = GREY.

Now, if I change the <body> bgcolor = red,  the DataGrid is TOO SMART and it
updates the padding color automatically, now the padding color in DataGrid
becomes WHITE!!!!????  Try that yourself..

How can I stop this from happening?  or which properties can I use to
override this?

Help.

Author
20 Jan 2006 6:20 PM
Phillip Williams
Hi Zean,

For an accurate formatting of any server control, use cascading stylesheets.
This is a demo for applying CSS to the DataGrid
http://www.societopia.net/samples/DataGrid_cssClass.aspx
Show quote
"Zean Smith" wrote:

> I created a simple Datagrid with normal <body> tag (background white by
> default), the DataGrid shows padding color = GREY.
>
> Now, if I change the <body> bgcolor = red,  the DataGrid is TOO SMART and it
> updates the padding color automatically, now the padding color in DataGrid
> becomes WHITE!!!!????  Try that yourself..
>
> How can I stop this from happening?  or which properties can I use to
> override this?
>
> Help.
>
>
>

AddThis Social Bookmark Button