I write content to a cell that is by default interpreted as a date.
But I want it treated as plain text.
How do I do this? The CellValueFormat constructor wants a format string; but there is no format string for this case.
2 Answers, 1 is accepted
3
Anna
Telerik team
answered on 15 Sep 2014, 11:56 AM
Hi Marc,
The format string which will help the value be interpreted as text is "@", as it is used in the following snippet:
The reason why the format is applied before the value is set is that if you do it the other way around, you will get the numeric value of the date (41276), instead of the string you entered (1/1/2013), which is consistent with the behavior of Excel.
Regards,
Anna
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.