简体   繁体   中英

How to create nested tables in excel using EPPlus

How can I create Nested tables using EPPlus (One cell contains another table) , is it possible ?

What I've tried :

  1. Create nested DataTable ( DataTable contains DataColumn of type DataTable ) and bind it using LoadFromDataTable method . But it didn't work.

  2. Create two different Worksheets and add one inside cell of the other one !! -seems stupid- it also didn't work.

any ideas please.

Thanks.

putting a table inside a cell is not supported by excel and it's not logical , what I did to workaround this is to do small visual work-around.

just merge the header of the cell containing the sub-table (to make it look like 1 cell) then draw the sub-table under this merged header.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM