The wijgrid widget allows you to add a line break in the cells while the cell is in editable mode for automatic text wrapping. This can be done by adding a text area in the cells as and when the cell enters into editable mode.
For example, the script below uses beforeCellEdit and afterCellEdit events and adds a text area in the cell of column0.