Looks like you need to set up your own grid layout and then populate the cells with all the ui elements that you need (select, input ecc) and show them conditionally on your parameters.
For a simple example of a grid layout look here Dynamically structured data grid element - #2 by dorilama