Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1155
Excel Export not working to due System.NotSupportedException
posted

Hi together,

once I export my data from the web data grid I get the following error:

System.NotSupportedException: 'Newtonsoft.Json.Linq.JValue is not a supported cell value type.'

I bind my data to the grid in the following way:

wgWorf.DataSource = JsonConvert.DeserializeObject(myJsonData);
wgWorf.DataBind();

The data is shown in the grid fine, here I do not have any problems. Thats the way how I try to export the data:

this.wwExcelExporter.DataExportMode = DataExportMode.AllDataInDataSource;
this.wwExcelExporter.DownloadName = "Test";
this.wwExcelExporter.Export(wgWorf);

When code passes Export function the error occurs.

What am I do wrong here?

Alex