I would like to use UltraDateTime control and would like the user to be able to leave date "empty" (unspecified or unknown). Setting Nullable to true and then setting Value to Nothing (in VB.NET) when a user deletes the content of the control, does not work. It seems to freeze the whole form until the user specified the date.
Any help would be appreciated.
Thank you,
This is the same behavior I had mentioned when I said that the user can't exit edit mode. If the underlying datatable does not allow null values, then you would have to pass off the value to the underlying source as a different value. If you're using a DataBinding (i.e. DataBindings.Add()), then you might be able to handle the Parse/Format events of the binding to convert the null value. You might also be able to accomplish this using a DataFilter.
-Matt
Thank you for your reply. What I meant "freeze the whole form" was that when the user deletes a date and tries to move to another controls, UltraDateTimeEditor would not let him, and the reason is that it (UltraDateTimeEditor) is bound to a data table (or one of its Columns). Similar problem can be solved with ComboBox (by inserting an empty row in the table), but I still do not know how to do it with UltraDateTimeEditor. Any suggestions?
Thank you!
What do you mean by "freeze the whole form"? Do you mean that you can't exit edit mode on the editor? I just tried this on a new form and deleted the text portion of the UltraDateTimeEditor, then put focus on a new control and everything worked fine for me. I was also able to null out the value in code during a button click. You should probably ensure that you have the latest hotfix installed. If you do have it installed, can you post the code that you're using?