How can we adjust row height automatically

How can we adjust row height automatically just as adjust col width?
Thank you!

Use grid.enableMultiline(true) to enable such mode ( command need to be issued before grid.init )