handle case where grid is shown w/o rows

whenever the grid is shown, we need to resize the column headers to match the rows in the body in case `rerender()` was called while the grid was not visible.

this change handles the corner case where there are no rows i the body, in which case we shouldn't try to resize the header columns.

fixes DAQ-652