#gridContainer{   height: 90%; } .dgrid {     position: relative;     overflow: auto;     /* This is needed by IE to prevent crazy scrollbar flashing */     border: 1px solid #dddddd;     display: block;     color:black; }  .dgrid-grid {  height: auto;  min-height:350px; }  .dgrid-header {     font-weight: normal;     font-size:12px;     height: auto; } .dgrid-content {     position: relative;     margin-top: 20px;     font-size:12px;     width:inherit; }  .dgrid .dgrid-cell {     min-width: 50px;    border-color: #dddddd;    mid-height:  50px;    padding:5px 0px 5px 0px; }  .dgrid .dgrid-scroller {     max-height: 300px;     position: relative; }  .dgrid .field-OBJECTID, .field-Shape.len {     min-width: 0px; }Solved! Go to Solution.
return grid;
  currentQTask.on('complete', function(evt){         var grid = queryResultsHandler_toGrid(evt);            grid.resize();         registry.byId("gridContainer").resize(); });return grid;
  currentQTask.on('complete', function(evt){         var grid = queryResultsHandler_toGrid(evt);            grid.resize();         registry.byId("gridContainer").resize(); });