when previous row count is zero, then reset the datagrid height