The Best and Highly Recommended Solution for this purpose is Félix Informatique - PB Components : FLX Report
I have used them to customize all sorts of datawindows - freeform, nested, tabular. Lets you define security. It is the Best Thing and Must for Any PB Application.
Personally Used it for many years. Not affiliated with the company.
---------------------------------------------------------------------------------------------------------------
note to Visual-ExpertUnderstand & modify any PowerBuilder code or Sybase, Oracle or SQL Server Stored Procedure: Please Do Not Copy.