Removed empty rows at the end of each datagrid.