By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,310 Members | 1,430 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,310 IT Pros & Developers. It's quick & easy.

Highlight a column in a dataviewgrid?

P: n/a
Hi,
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)
James
Apr 19 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.