Trent L. Taylor (08/21/2007)
Ahhh...yeah, that is what is happening to you. Yes, the reason is because the EditingStateChanged event fired. You can control the EditingStateChanged a number of different ways, but that is what happened. This is correct in the fact that when the EditingState changes on the BO that the MaintenanceFormToolstrip will respect this. There are several things you could do in this situation. For example, if you set the AllowMultipleModifiedRecords property to True on the MaintenanceFormToolstrip, then the navigation will not become disabled since more than one record could be modified at the same time. Depending upon how you have the field setup to manage the NULLs in conjunction with the bound control, the value may or may not actually update the field itself. By default, the DateTimePicker will "clear out" the field on a NULL value but not actually change the underlying value. That is why there is the ClearKey which when pressed will in fact set the field in the table back to NULL.
Hello, I testing the datetimepicker control, I allow null values on the database, I open the BOM and see that do not allow nulls are the default... if I test the form with the datetimepicker a error "not valid convertion from 'DBNull' to "Date' type, then I open again the BOM and set an alternate on null (#1/1/1800#) and when I test it, when null values are found it worked (show a blank value), but when a value is found (the field not is null) the editingstate change.
How I can avoid to handle this event and only show the datetime value from the field?
thanks!