Display of non-updateable datetime is funky

I have a date time column in an ASP.NET Core Datagrid that is not updateable.  It displays according to the desired format but if I go to maintain the row the display changes to a different long format.  How can I get it to keep the same format at all times?

Before editing:



While editing:






1 Reply 1 reply marked as answer

TS Thiyagu Subramani Syncfusion Team November 18, 2020 04:04 PM UTC

Hi Harvey, 

Thanks for contacting Syncfusion support. 

Based on your shared information we suspect that you want to show same date format while editing the datetime column. To achieve this requirement we suggest to use the editType as datetimepickeredit in required date column. 

Please refer to the below code and sample link. 

 <e-grid-column field="OrderDate" headerText="Order Date" editType="datetimepickeredit" customFormat="@(new {type = "datetime", format = "M/d/y hh:mm a" })" width="160"></e-grid-column> 



Please get back to us, if you need any further assistance. 

Regards, 
Thiyagu S. 


Marked as answer
Loader.
Up arrow icon