Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7924885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:00:17+00:00 2026-06-03T18:00:17+00:00

Our not to be changed datalayer returns the DateTime.Mindate when the record’s column has

  • 0

Our not to be changed datalayer returns the DateTime.Mindate when the record’s column has a NULL value.
So when you put a null value in a record’s column and you read it again, you get 01-01-0001.

When binding this value to a DevExpress.XtraEditors.TextEdit control this value (01-01-0001) ofcourse is displayed in the control.

Now we want to show the control as being empty (no content), but i don’t know how to achieve that.

I did find out that you can set a custom display text for the control when the object’s attribute is NULL, but that doesn’t work ofcourse because the value is 01-01-0001 and not null.

So in short: if it’s a date with the value of 01-01-0001, show nothing in the control, otherwise, show the date.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:00:19+00:00Added an answer on June 3, 2026 at 6:00 pm

    You could use a DateEdit control instead of a TextEdit

    Set the NullDate property to 1-1-0001

    Turn off the drop down button in the “Buttons” settings if you do not require it. It will then look just like a TextEdit.

    Image

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have not purchased an SSL certificate so the user of our website has
After update our iphone app can not access the keychain. The distribution certificate has
I know it should persist if my Core Data Model has not changed, but
Per a question I posted yesterday , our website's DNS structure has changed to
Our saxparser does not ignore the byte order mark  which appears at the
Currently, our organization does not practice Continuous Integration. In order for us to get
I am not server admin on one of our production systems, neither do I
Some of our FogBugz users experience that the Screenshot tool does not start-up automatically
My fellow programmers did not think to add timestamps to every tables of our
Our application uses Hibernate with Sql Server 2005. Being a DBA, I am not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.