Is it possible to add collapse to datatable cell?

I am using the datatable to display data. I would like to table cell has been collapsible.

Hi, could you please specify your requirement?

Can the TreeTable be a solution?

Hi,
In my datatable cell suppose I am having 2 key value pairs I can show it there but if more than 2 I can see 2 onafter render and other kay value pair I can see on like expand button within cell only.How I can achieve it?

Ok. Thanks