469,271 Members | 1,096 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Highlight a column in a dataviewgrid?

I am having a little trouble highlighting a column in a grid. Basically, I
have 7 columns, one for each day of the week and I need some way of
highlighting "today".
I tried this (if the column is indeed tagged with today's date):

dViewWeek.Columns[i].HeaderCell.Style.ForeColor = Color.Red;

but it doesn't appear to do anything, my header cell text is still black.
Same happens if I set the BackColor, they stay the same 3d button grey.
Any ideas?
Or even alternative methods of highlighting a column - it doesn't have to be
a text changing thing. I tried making the divider thickness more on the
correct column plus the one previous to it, but this doesn't work for the
leftmost column (only highlights the right side, the left side that butts up
against the row headers is as normal)
Apr 19 '06 #1
0 1082

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ben Bloom | last post: by
6 posts views Thread by LU | last post: by
2 posts views Thread by Sridhar | last post: by
21 posts views Thread by listaction | last post: by
reply views Thread by Ryan Liu | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.