Vote UpVote

Using custom colors in the TDBGrid columns with vcl styles enabled

The Road to Delphi – The TDBGrid component allows you to customize the colors of the columns and fonts used to draw the data. Unfortunately if you uses the vcl styles all these customizations are lost This issue is caused because the TCustomDBGrid.DrawCell method ignores the custom colors of the columns when the vcl styles are enabled. So the solution is patch this method to allow use the proper colors. After of this you will get a result like so. I just uploaded this patch as part of the vcl styles utils project. To use it you must add the Vcl.Styles.DbGrid unit to the uses part of your form after of the ...
Favorite? Off-Topic? Rodrigo @ 2012-08-24 05:02


Visits: 545
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)