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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


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