In order not to change, datalayer returns DateTime.Mindatewhen the record column is NULL. Therefore, when you put a value nullin a column of a record and you read it again, you get 01-01-0001.
When binding this value to a value, DevExpress.XtraEditors.TextEdit controlthis value (01-01-0001) is displayed in the control.
Now we want to show that the control is empty (without content), but I do not know how to do this.
I found out that you can set a custom display text for the control if the object attribute is NULL, but this does not work, because the value is 01-01-0001not null either.
In short: if it is a date with a value 01-01-0001, do not show anything in the control, otherwise specify a date.
Any ideas?
source
share