Control with link button not show grid in modal window

Good afternoon, In a control application I have a link button to a grid, depending on the properties of the link the grid should appear in a modal window, but it appears in the same window and does not allow to close it. Any ideas to solve this? Thank you