Set dynamic width of a div based on parent container width?

Set the expanded layout to a width of 100%.
Set the child within the expanded layout (like a datagrid) to a max-width of 100%.
Set the datagrid to scroll.