DateTimePicker的默认空值 #1394
Unanswered
ZeilgZhang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
DateTimePicker有办法默认设置一个空值而不是DateTime.Now或者DateTime.MinValue么?
从数据库中取出的值是null,如果绑定的是个Text会显示DateTimeMinValue,如果绑定DateTime对象,就会显示DateTime.Now。
有什么办法让DateTimePicker一开始就能根据绑定的值来显示PlaceHolder么?比如说如果是DateTime.MinValue就显示PlaceHolder
Beta Was this translation helpful? Give feedback.
All reactions