0

I want to hide the default DateTime value (01/01/0001) if passed to a DevExpress TextEdit.

What is the correct way to do this ? I tried to use masks / Repository items, unsuccessfully.

Thanks in advance for your replies !

3
  • 3
    I dont really understand what you want to do. Why you pass a DateTime value to a textedit if you dont want to show it? Else you maybe can hook up the validate event and check that the value of the textedit is not 01/01/0001.
    – Sebi
    Jun 20, 2013 at 5:51
  • +1 for @Sebi comment. Also why you are using the TextEdit for a DateTime? Use the DateEdit for this purpose.
    – DmitryG
    Jun 20, 2013 at 6:31
  • I use ReadOnly TextEdits for showing the results of an algorithm. I got it. @Sebi comment gave me an idea of how to do it. Handling the EditValueChanged event will solve the issue.
    – Fares
    Jun 20, 2013 at 7:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.