Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Changing Cell Colors

Question:
I have written a calendar function using the standard grid control as the calendar. The text property of each row/column is set to the correct day within the month as expected. However, a need has arisen to change the foreground color of the text for a specific row/column combination and need to write other text to the grid row/column. This would be used to display different things for each day of the month.

Answer:
The standard grid cannot change colors within cells. You will have to look at using another grid control like TrueGrid or the Sheridan DataWidgets set. Sheridan has a Calendar Widgets product, which has things like the dropdown calendar (like in Intuit's Quicken) and a scheduler, similar to many PIM programs. It really eliminates a lot of the headaches with validation of dates, etc.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date