--- Dave Coventry <[EMAIL PROTECTED]> escribió:

> Hi,
> 
> Can you colour an individual cell in TStringGrid?
> 
> Thank you,

Yes, try writing an OnPrepareCanvas Event Handler for your grid, then
write something like:

  if (ACol=2)and(ARow=2) then 
    StringGrid1.Canvas.Brush.Color := clBlue;
    // or TStringgrid(Sender).Canvas.Brush.Color:=clBlue;

That should paint cell 2,2 with blue color.

Jesus Reyes A.



        
        
                
___________________________________________________________ 
Do You Yahoo!? 
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. 
http://net.yahoo.com.mx 

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to