Ver Mensaje Individual
  #8  
Antiguo 03-12-2007
Avatar de Nieto
Nieto Nieto is offline
Miembro
 
Registrado: nov 2007
Posts: 18
Reputación: 0
Nieto Va por buen camino
Ok,

AL momento de crear los Grids hago esto:

Código Delphi [-]
  public
    { Public declarations }
   ListaGrid: TObjectList;


procedure TFRpt.GeneraHojas;
var sg: TwwDbGrid
begin
  if not Assigned(ListaGrid) then
    ListaGrid := TObjectList.Create;

    sg  := TwwDbGrid.Create(self);
    ListaGrid.Add(sg);

end;

Entonces seria poner en codigo delphi algo asi

Código Delphi [-]
PageControlIngresos.ActivePage := TTabSheet(Twincontrol(FindComponent(ListaGrid.Items.[i].Name)).Parent);

Saludos;

Última edición por jhonny fecha: 03-12-2007 a las 19:28:36. Razón: Colocar etiquetas DELPHI
Responder Con Cita