Jump to content

pass values dbgrid to frame rowexpand


asapltda

Recommended Posts

52 minutes ago, asapltda said:

Hi, I need to pass values from the dbgrid to the frame when I use rowexpand to show the auxiliary way, if someone has an example of how to do it I could share it, thanks

Hi,

Sorry, can you please explain in more detail?

Link to comment
Share on other sites

FROM DE MAIN FORM

procedure TFGENERARRESERVAS.UniDBGrid1RowExpand(Sender: TUniCustomDBGrid;
  const RowId: Integer; var RowControl: TControl; Container: TUniContainer);

begin
  d.generarreservas_g_idpeddet :=  VPEDDET_CDS.FieldByName('IDPEDDET').AsInteger ;     <--- THIS IS DATA MODULE

  RowControl := TFGENERARRESERVASAUX1.Create(Container);    <------ROW CONTROL

end;

--------------------------------------

AUXILIARY FORM

procedure TFGENERARRESERVASAUX1.UniFrameBeforeReady(Sender: TObject);    <------ROW CONTROL  
begin
    D.GET_VPEDDET_IDPEDDET(p_idpeddet, VPEDDET);   <--- THIS IS DATA MODULE

end;

---------------------

 

I NEED TO PASS THE VALUE OF THE MAIN FORM TO THE AUXILIARY FORM OF A DBGRID AS I CAN DO IT, I CAN DO IT USING THE DATA MODULE EXISTS ANOTHER WAY

GRACIAS/ TKS

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...