title: Dojo datagrid autoHeight and fixed column headers
body: <p>I'm using datagrids a lot for varying amounts of data, so have set autoHeight: true on them so the grid expands to the height of the data.  However, if there is more data than can be shown on the screen at once, a scroll bar correctly appears on the window.  Scrolling down means that the column headers will go off the top of the page.</p>
  
  <p>With autoHeight false, in a hacky way, I can calculate the height of the page and set the grid's height to an arbitrary value so the scroll bar appears on the grid, which means that the column headers are fixed.  However, this is only good if the grid is full of data, otherwise the grid will still be full screen but only with a few rows of data - wasting screen real-estate.</p>
  
  <p>Is there a way of combining both methods?  </p>
  
  <p>I'd like to be able to have a mode that will autoHeight the grid as it normally does if the entire grid can fit into the available space on the page.  If it wouldn't fit, I'd like it to fix the height of the grid to whatever remaining space is available, so that the data can be scrolled without losing the headers.</p>
  
  <p>Does anyone know if this is possible?</p>
  
  <p>Thanks very much,
  Ed</p>