|
-
Dec 21st, 2007, 04:13 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2005] DataColumn Highlighting
How can i highlight the current day column by default (as per system Time) of my Databound DataGridView1 where Mon, Tue, Wed, Thu, Fri, Sat & Sun are the DataColumns?
-
Dec 22nd, 2007, 12:02 AM
#2
Re: [2005] DataColumn Highlighting
You can get a numerical value for the current day of the week from:You can then get the corresponding column by index from your DataGridView and set the appropriate property or properties of its DefaultCellStyle.
Just note that the DayOfWeek enumeration starts numerically at zero to represent Sunday. If your week starts at Monday then you'll have to do a little bit of simple translation.
-
Dec 23rd, 2007, 01:42 PM
#3
Thread Starter
Hyperactive Member
Re: [2005] DataColumn Highlighting
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|