Board index » delphi » ? about Delphi3 grid - row color and cell color

? about Delphi3 grid - row color and cell color

Hello -

Does anyone know how to, if possible:
  1) change color of a particular row (vs. column) on a DBgrid;
  2) change color of a particular cell in a row on a DBgrid;
  3) make the background or the text of a particular row to flash
     a certain color (ie. red to white, then back to red).

Perhaps there is another standard Delphi component to be used.
......................................
Thanks much and TIA (thanks in advance), William

Please reply to: will...@juno.com
               or to: awill...@aol.com

 

Re:? about Delphi3 grid - row color and cell color


William,

All of this can be handled in the OnDrawCell event. The only
complicated part would be the flashing text; you'd have to
draw the cell twice inside the single call to OnDrawCell with
a slight delay.

Ken
--
Ken White
kwh...@westelcom.com

Clipper Functions for Delphi
http://members.aol.com/clipfunc/

Quote
AWillRed wrote:

> Hello -

> Does anyone know how to, if possible:
>   1) change color of a particular row (vs. column) on a DBgrid;
>   2) change color of a particular cell in a row on a DBgrid;
>   3) make the background or the text of a particular row to flash
>      a certain color (ie. red to white, then back to red).

> Perhaps there is another standard Delphi component to be used.
> ......................................
> Thanks much and TIA (thanks in advance), William

> Please reply to: will...@juno.com
>                or to: awill...@aol.com

Other Threads