[enchev]
If the database field is nullable the cell will be empty for null values.
I have a table is sql server with null dates.
This does work if you don't add a column specific format to the field.
But, in anticipation that the date may be filled, I added this simple format.
@String.Format("{0:d}", data.LTID3EffectiveDate)
It seems that when you add a template format, it no longer shows up as blank if the column is null. What code can be added to leave the field blank when null, and use the format when populated in the database?
Sorry , new at this. Still not working. I also had to add the @ in front of data and String so they resolved to actual dates. Can a datetime even be checked for null using "=="?
You cannot check if a property of type DateTime is null as it is a struct (non-nullable). You can however check DateTime? which can be null. You didn't specify what property type you are actually using. It seems your date isn't null at all but 1/1/1900 so a different check should be used (unrelated to Radzen).