getting cell color in a TCRDBGrid
Posted: Wed 20 Apr 2011 12:38
Hello,
using bcb 2010 / odac 6.90.0.57.
I have a function receiving as parameter a TCRDBGrid, and exporting its content to an excel spreadsheet, works fine.
The cells in the dbgrid have different colors, using the OnDrawColumnCell event.
I would like these colors also to be set in the excel spreadsheet.
I tried setting grid->Col and grid->Row, then using grid->Brush->Color and grid->Canvas->Font->Color to get cell current color, but it doesn't work.
=>Is there a way to know the color of a cell in a T(CR)DBGrid?
Regards.
using bcb 2010 / odac 6.90.0.57.
I have a function receiving as parameter a TCRDBGrid, and exporting its content to an excel spreadsheet, works fine.
The cells in the dbgrid have different colors, using the OnDrawColumnCell event.
I would like these colors also to be set in the excel spreadsheet.
I tried setting grid->Col and grid->Row, then using grid->Brush->Color and grid->Canvas->Font->Color to get cell current color, but it doesn't work.
=>Is there a way to know the color of a cell in a T(CR)DBGrid?
Regards.