![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 Eliyahu Goldin |
|
|
|
#3 |
|
Posts: n/a
|
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! Trevor Benedict R |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get datagrid textbox value | kanchangorak | Software | 0 | 03-11-2009 11:11 AM |
| Loading 24,000 rows into C# .net Datagrid | Kagu | Software | 0 | 03-10-2009 06:51 PM |
| validating textbox inside datagrid | susan_1516 | Software | 0 | 11-09-2008 01:29 PM |
| ASP.NET VB Using ItemDataBound to create textbox in datagrid rows. | smi59550 | General Help Related Topics | 0 | 01-18-2008 07:42 PM |
| Disable ASP Button in a Datagrid | ChrisClayko | General Help Related Topics | 0 | 08-02-2006 03:08 AM |