The reason this doesn't work is because ng-grid uses absolute positioning under the hood. The grid parameters are run only once, and then the heights are set in html after that, using style= on the html dom node. (IT'S SIMPLE!) They even set the style manually in all basic header dom-nodes.

Another prospect I was thinking about was trying to redraw the grid using ngGridLayoutPlugin. I played with this for 30 minutes with no luck. You can try manually redrawing the page. It seems that the ng grid is not very good at redrawing the grid, and they did the optimization specifically to update the data, but not for the styles.
The unstable version 3.0 beta looks like they made a lot of changes, and you can do what you are trying to do easier ... however, it is not ready for production. See the header class conventions in this example: http://ui-grid.info/docs/#/tutorial/115_headerCellClass
I had a hell of a time trying to get an ng grid to bet on my last job. At some point, we were ready to leave him because it was too restrictive. Good luck.
source share