Changing Cell Colors

Changing Cell Colors

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.

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.

See also  Does It Make Sense to Splurge on a Laptop?

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist