Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Delphi para la web (https://www.clubdelphi.com/foros/forumdisplay.php?f=51)
-   -   grid dinamico (https://www.clubdelphi.com/foros/showthread.php?t=89432)

wil_ramone 19-11-2015 23:56:33

grid dinamico
 
Buenas tardes

alguien me podría ayudar a pintar un stringgrid en tiempo de ejecución??

estoy trabajando en un pagControl en tiempo de ejecución

//aquí creo elo pagcontrol en tiempo de ejecucion
TabSheet := TTabSheet.Create(_verRporte.pgReportes);
TabSheet.PageControl := _verRporte.pgReportes;
TabSheet.Name := DM.Query1.Fields[0].Text;
TabSheet.Caption := TabSheet.Name;

//aquí le pongo el grid a cada pag creado
gridTmp := TStringGrid.Create(nil);
gridTmp.Align := alClient;
gridTmp.Parent := TabSheet;
gridTmp.Name := 'stgReportes';
gridTmp.RowHeights[0]:=250;

lo que no se como hacer es darle es efecto del drawcell a los gird creados
todos tienen que tener el mismo formato

espero haberme explicado bien

gracias

AgustinOrtu 20-11-2015 00:05:34

Asigna un evento al manejador OnDrawCell

Código Delphi [-]
type
  TForm1 = class(TForm)
  private
   GridsOnDrawCell(...);
  end;


...

gridTmp.OnDrawCell := GridsOnDrawCell;


La franja horaria es GMT +2. Ahora son las 10:02:05.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi