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?
UltraCalendarCombo.Value == DbNull.Value
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?