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.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: