Thanks for your response.
Yes I added type 'Subgrid' in Basic Form Metadata:

But from the user's perspective, I see my form first:

Then, when I click the Edit button, I see my subgrid in the pop-up window:

And what I want to achieve is to be able to edit the data in this pop-up window, the data is linked to the parent record in my form. Instead of clicking another Edit button and opening another pop-up window, like this:

Do you think this is achievable?
To make it simpler, I just want to have a form where when I click edit it will allow me to edit records from another table, related to my selection.