Problem with GRID Master/Details

Hello, I have a master / detail form works well. But now when I do a GRID of the details of the form (master / detail) I generates a grid with all general antecedecentes and this with each of the details.
I mean, if I have the main sales data (No. bill name) and details (item1, name, item2 name)
generating the grid (No. bill name) is repeated for each of the details

I guess your query of your detail table is not correct, you probably need a variable with the key data from the master. But without details this remains a guess.