Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - datagrid header formatting

 
Thread Tools Search this Thread
Old 06-09-2004, 12:54 AM   #1
Default datagrid header formatting


I am using datagrid with templatecolumns.
for the life of me I can't figure out how to make the header row a different color than the rest of the tbl. in the datagrid. Ok let me rephrase that. I know how to set the header style background to a different color no problem, but the cellspacing between the columns shows the background of the whole table (datagrid) which makes the header column color not a solid consistant color.

So can anybody guide me as to how to change the whole background color for the first row of a table?

This is not doing it HeaderStyle-BackColor="#D0D0D0", regardless of where I define it

Thanks in advance for your help,

Amadelle




Amadelle
  Reply With Quote
Old 06-09-2004, 08:52 AM   #2
Eliyahu Goldin
 
Posts: n/a
Default Re: datagrid header formatting

Amadelle,

What about setting cellspacing to 0 and using padding in styles for separating columns?

Eliyahu
"Amadelle" <> wrote in message news:%...
I am using datagrid with templatecolumns.
for the life of me I can't figure out how to make the header row a different color than the rest of the tbl. in the datagrid. Ok let me rephrase that. I know how to set the header style background to a different color no problem, but the cellspacing between the columns shows the background of the whole table (datagrid) which makes the header column color not a solid consistant color.

So can anybody guide me as to how to change the whole background color for the first row of a table?

This is not doing it HeaderStyle-BackColor="#D0D0D0", regardless of where I define it

Thanks in advance for your help,

Amadelle


  Reply With Quote
Old 06-09-2004, 08:56 AM   #3
Trevor Benedict R
 
Posts: n/a
Default Re: datagrid header formatting

Why not use a Style Sheet and set the border-left-color,
border-top-color etc to the same color as the background color and use
the css class instead for the header.

Best Regards,

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump