We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Export Fields where value is a List<MyObject>


I have a grid where a field is a List<MyObject>. 

In the razor page I used a template where I convert the cities collection (for example) separated by a comma, into a single string. The grid work correctly and in the cell grid I see the city list.

When export to excel I implemented ExcelQueryCellInfoHandler and assigned to args.cell.Value the same conversion but in the exported excel file I see System.Collections.Generic.List`1[MyObject] in the cell value.

where am I wrong?

thanks in advance

3 Replies

NP Naveen Palanivel Syncfusion Team February 14, 2023 03:07 AM UTC

Hi Salvatore,

Greetings from Syncfusion support.

We have checked your query and before proceeding further with your requirement kindly share the below details to validate further at our end.

  1. Share us the entire Grid code snippet along with model class and the ExcelQueryCellInfo handler event .
  2. Share us the video demonstration of the issue.
  3. Share us the issue detail about how model class la defined in grid
  4. If possible share us an simple issue reproduceable sample

The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.


Naveen Palanivel

SA Salvatore February 14, 2023 01:21 PM UTC


preparing the example where there was the problem I realized that I was making a mistake. I fixed the bug and now it works correctly.

thank you anyway for your availability 

and forgive for the time spent on my request


SG Suganya Gopinath Syncfusion Team February 15, 2023 05:06 PM UTC


Thank you for updating the status of the issue. No issues, we are glad to assist you. 

We are marking this thread as closed. 


Suganya Gopinath.

Live Chat Icon For mobile
Up arrow icon