Problem in modal form

Hi to All,

From the grid grid_table1 I open the master/detail form form_table1.
The detail block is form_detail_table2. In this detail form, I have created a button that call in modal mode the grid grid_table3 that display, for example, the countries codes.
But, when I click on this button, the grid grid_table3 is displayed inner the detail block:mad:
If I run standalone the form_detail_table2 the grid is displayed in modal mode correctly.
Have someone an “idea” in order to solve this problem ?