Change Master Detail Grids Layout Using CSS


The default master detail grid has the top down layout. The master, the parent datagrid is always on top of the child grid. This is the default layout. Each datagrid is enclosed by a div with a unique ID.

In the example below, the master grid would have the ID gbox_orders, and the 1st detail grid would have the ID gbox_orders_d1 (Replace “orders” here with your own master table name) Once you have those IDs, one can use CSS to set layout easily. Read more about CSS layout on w3school.

The below CSS set the parent grid float on the left while the child grid is fixed at the right bottom corner.

/*; master grid id format: #gbox_<MASTER TABLE NAME> */
    margin:30px 10px;
/* detail grid id format: #gbox_<MASTER TABLE NAME>_d<index> */
    position: fixed;
    bottom: 0;
    right: 0;

Live Demo