Ver Mensaje Individual
  #2  
Antiguo 06-05-2011
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 36
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola.

Probá de este modo:
Código:
void __fastcall TForm1::gridDrawCell(TObject *Sender, int ACol,
      int ARow, TRect &Rect, TGridDrawState State)
{
  TStringGrid *StrGrd = dynamic_cast<TStringGrid*>(Sender);

  if (ARow != 0 && ARow%2 != 0 ){
   StrGrd->Canvas->Brush->Color = clBlue;
   StrGrd->Canvas->Rectangle(Rect);
   StrGrd->Canvas->Font->Style << fsBold;
   StrGrd->Canvas->Font->Color = clWhite;
   DrawText(StrGrd->Canvas->Handle, StrGrd->Cells[ACol][ARow].c_str(),
            StrGrd->Cells[ACol][ARow].Length(), &Rect,
            DT_SINGLELINE | DT_VCENTER);
 }
}
Saludos.
__________________
Daniel Didriksen

Guía de estilo - Uso de las etiquetas - La otra guía de estilo ....
Responder Con Cita