By Jeff Pagley - 9/4/2007
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!
|
By StrataFrame Team - 9/5/2007
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.
|
By Jeff Pagley - 9/5/2007
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!
|
By StrataFrame Team - 9/6/2007
Aye, it is much more straight forward
|