Hi
I've taken over the maintenance of an application and have noticed the following issue which I am not sure is desired behaviour of databound WinForms controls.
The application uses LLBLGen Pro 2.5, Krypton Toolkit (for GUI controls) in a C# WinForms application (framework 2.0).
When the user clicks on a textbox for manual date entry (not a picker) or a combo box, and then tries to click or tab away, focus jumps back to the control originally clicked on. I believe this might be occurring because the value in the field is being validated upon focus being lost and is not valid for the bound field on the entity. An empty string in the textbox should be valid for a date field I would have thought (null - the underlying column is nullable). Same thing happens with the dropdowns regardless of whether the underlying column is nullable or not.
I would like to present errors upon the user clicking the save button, through the ErrorProvider mechanism as its unintuitive behaviour that once you enter a control you can't leave it until a valid value is entered/chosen.
Is this a peculiarity of the way this has been implemented or is this normal behaviour?
The databindings are being added as follows:
this.txtDateIssued.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingSourceCheck, "DateIssued", true));
DateIssued is a nullable DateTime column in the database.
Regards
Adam