I have AllowNull set to true, my user has deleted all text from the combo. Value == null returns false. What's the best way to test for null?
Yes, I tested it with the latest version of 2008.1 If you are seeing different behavior you should try the latest version and if the problem persists, report it as a bug
Have you tested this? When the user blanks out the combo, testing for DBNull.Value returns false. When there is no text in the combo, Value.GetType() returns System.String. If there is a date selected, Value.GetType() returns DateTime. The datatype of the Value property is System.Object.
So, testing string.IsNullOrEmpty(calendarCombo1.Text) seems to be the best test, but it just seems a little strange. Is there a better test?
UltraCalendarCombo.Value == DbNull.Value