Ver Mensaje Individual
  #2  
Antiguo 19-03-2004
Avatar de yusnerqui
yusnerqui yusnerqui is offline
Miembro
 
Registrado: mar 2004
Ubicación: Cuba
Posts: 679
Reputación: 21
yusnerqui Va por buen camino
Pedes hacerlo poniendo esto en el evento onDrawCell del TStringGrid

var
M : Byte;
SCad : String;
begin
if ACol = 1 then //Por ejemplo para la colummna 1
begin
SCad := StringGrid1.Cells[acol,arow];
with canvas,rect do
M:=Right-TextWidth(sCad+' ');
StringGrid1.Canvas.TextRect(Rect,M,Rect.Top+2,sCad);
end;
Saludos yusnerqui
__________________
Lo importante no es llegar primero, sino saber llegar.

Para que puedas llegar mejor lee la Guia de Estilo

Responder Con Cita