Datatable - Center multiline vertically

I have a datatable that’s set up similar to this snippet Code Snippet

I have some cells that fit on a single line, and some that take up multiple rows (getting it to wrap with the rowHeight/rowLineHeight as found in other discussions, and also have fixedRowHeight false so that it will fit the content.

My issue is I would like to be able to center all of the cells vertically. I’ve tried a couple of different ways of doing this, but they either haven’t worked, or it breaks the row height calculation and the multiline text gets cut off. Is there a way to accomplish this?

Thanks!

try applying css on datatable container

Hello @pmayur19,

Perhaps a solution where you need to set the same rowLineHeight and rowHeight is suitable for you.

Please, check out the snippet with example: Code Snippet
Also let us know if your request is different, we will try to help! Thanks in advance!