- Home
- Forum
- ASP.NET MVC - EJ 2
- Xlsio - GetType() of Value2 changed from DateTime to Double after changing CellStyle
Xlsio - GetType() of Value2 changed from DateTime to Double after changing CellStyle
Hi


Before I change CellStyle, Value2 is DateTime
After that, Value2 is Double
I've just changed the style, not the data type
How to prevent that?
Best Regards.
SIGN IN To post a reply.
7 Replies
1 reply marked as answer
KK
Konduru Keerthi Konduru Ravichandra Raju
Syncfusion Team
September 3, 2020 01:13 PM UTC
Hi Thinh,
Greeting from Syncfusion.
We are able to reproduce the reported issue and validating it currently. We will share the validation details in two business days, on September 7th,2020.
Kindly confirm if you are using 18.2.0.44 version of Syncfusion XlsIO.
Regards,
Keerthi.
TH
Thinh
September 3, 2020 01:36 PM UTC
Hi Keerthi.
I'm using syncfusion.xlsio.net.core, version 18.2.0.55
Best Regards.
KK
Konduru Keerthi Konduru Ravichandra Raju
Syncfusion Team
September 3, 2020 01:48 PM UTC
Hi Thinh,
Thanks for sharing the version details.
Regards,
Keerthi.
KK
Konduru Keerthi Konduru Ravichandra Raju
Syncfusion Team
September 7, 2020 12:53 PM UTC
Hi Thinh,
We deeply regret for the delay.
We are facing complexity in finding the root cause of the issue. We will share the validation details on September 8th,2020.
We appreciate your patience.
Regards,
Keerthi.
KK
Konduru Keerthi Konduru Ravichandra Raju
Syncfusion Team
September 8, 2020 12:39 PM UTC
Hi Thinh,
Thanks for your patience.
When IStyle is created the number format will be in General. So, on applying the created style to the Excel cell, the number format will change. We suggest you to set IncludeNumberFormat property available under IStyle to false, to overcome the reported issue.
Please find the code snippet below.
Code Snippet:
|
style.IncludeNumberFormat = false; |
Kindly try this and let us know if it helps.
Regards,
Keerthi.
Marked as answer
TH
Thinh
September 8, 2020 01:08 PM UTC
It works. Thanks Keerthi.
Best wishes to you and your team.
KK
Konduru Keerthi Konduru Ravichandra Raju
Syncfusion Team
September 9, 2020 06:03 AM UTC
Hi Thinh,
We are glad that the provided suggestion helped you.
Kindly let us know if your need any further assistance.
Regards,
Keerthi.
SIGN IN To post a reply.