Header Line Format Form

Hello,

I want to create a new form of Header-Line format nearly same as PurchTable form.

If we select purchId on Header then item and details is automatically reflect on Grid Line.

Thank You