How to create detailview and gridview on same page in yii2

I want to create detailview and gridview on same page but data use form different tables.

Pass data for both from controller and use those data(variable) in the view for different view.
Lets say you passed ['gridViewModel' => $gridViewModel, 'gridViiewSearch' => $gridViiewSearch, 'detailViewModel' => $detailViewModel
Now use $gridViewModel, gridViiewSearch in gridView, and detailViewModel in DetailView.
https://www.yiiframework.com/doc/guide/2.0/en/output-data-widgets
https://www.yiiframework.com/doc/api/2.0/yii-grid-gridview
https://www.yiiframework.com/doc/api/2.0/yii-widgets-detailview