def render_grid(grid)
      if grid.output_buffer
        grid.output_buffer
      elsif grid.csv_tempfile
        grid.csv_tempfile.path
      else
        raise WiceGridException.new("Attempt to use 'render_grid' without 'define_grid' before.")
      end
    end
def render_grid(grid)
      if grid.output_buffer
        grid.output_buffer
      elsif grid.csv_tempfile
        grid.csv_tempfile.path
      else
        raise WiceGridException.new("Attempt to use 'render_grid' without 'define_grid' before.")
      end
    end
Used after <tt>define_grid</tt> to actually output the grid HTML code.
 Usually used with detached filters: first <tt>define_grid</tt>, then <tt>grid_filter</tt>s, and then
 <tt>render_grid</tt>