It seems you are custom building something which Mendix delivers out of the box: take a look at listen to grid source of the data view widget.
Adding to Rom's answer. When you create a new Page, there are several out-of-box Page Templates available in the Create New Page dialog. Chose one of the 'Overview with detail' templates to get the pattern described above.