StrataFrame DevExpress Wrapper DateTimePicker/DateEdit Control


Author
Message
Jeff Pagley
Jeff Pagley
StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
Does anyone know the DevExpress DateEdit control settings to show a blank value on the form instead of 1/1/1900 (smalldatetime NULL value) when the field value is NULL in the database table?  I think it is a little confusing to the end user to see a date when in fact the field is empty (NULL).

Thanks SF Team!

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
The DevExpress wrapper's DateEdit control does not have the same NULL value support that the basic DateTimePicker or the Infragistics wrapper's date editor.  There is not currently a way to set the value that should be considered null.  You can accomplish this by inheriting the DateEdit and shadowing the DateTime property (you'll have to use the "new" keyword in the property declaration to shadow/hide it).  If the value gets set to 1/1/1900, then change the date time format to custom and provide an empty string for the format to blank it out.  If the value is different, then reverse it.
Jeff Pagley
Jeff Pagley
StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)StrataFrame User (465 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
Thanks Ben.  As a parttimer, I not going to make the effort.  I am going to use the SF DatePicker instead.  It is more straight forward in handling nulls.

Thanks!

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Aye, it is much more straight forward Wink
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search