Fixed styling computation. Added the ability to clear out a datagrid.