Hello,
I just upgraded to Infragistics WinForms 11.2 (11.2.20112.1010) hoping that this problem would have been addressed.
I have untracombo boxes in forms (need the multi-columns support) but the event ItemNotInList does not fire. Instead, an error is raised if the user types and their text does not match an item in the list.
Two questions/requests: How do I get this to work and if it is not supposed to work directly, then will you consider removing the event from the control.
Thanks, Norm
Hello Norm,
nwdeitech said:Is there a way to set a default value that the control uses when the user types a value that is not in the list.
Maybe you could try :
private void ultraCombo1_ItemNotInList(object sender, Infragistics.Win.UltraWinEditors.ValidationErrorEventArgs e) { //MessageBox.Show("ultraCombo1_ItemNotInList() event fired"); ultraCombo1.Value = "My default Value"; }
private void ultraCombo1_ItemNotInList(object sender, Infragistics.Win.UltraWinEditors.ValidationErrorEventArgs e)
{
//MessageBox.Show("ultraCombo1_ItemNotInList() event fired");
ultraCombo1.Value = "My default Value";
}
nwdeitech said: The reason that I has set the Data Source Update Mode to "OnPropertyChanged" is that the users of my application are used to selecting a different value from a combo box and then closing an edit form without tabbing off the combo box. In this scenario, the control never Validates and the users new selection does not get saved.
The reason that I has set the Data Source Update Mode to "OnPropertyChanged" is that the users of my application are used to selecting a different value from a combo box and then closing an edit form without tabbing off the combo box. In this scenario, the control never Validates and the users new selection does not get saved.
I`m not sure that I understand your scenario, but when the user try to close the win form, the order should be:
1. Our UltraCombo control will exit from Edit Mode - the ItemNotInTheList event will fired
2. Then the WinForm will be close.
Please let me know if you think that I misunderstood your scenario or if you have any questions.
Question relating to my findings:
Is there a way to set a default value that the control uses when the user types a value that is not in the list. If there is, then I could set this property to an empty GUID to prevent the error from occurring and still use the property setting for Data Source Update Mode to "On Property Changed".
When the Data Source Update Mode is "OnValidation" then the system error for an invalid GUID value is not thrown and the ItemNotInList event is thrown.
Hi,
I have been able to verify the condition that causes the error. My combo box has a GUID column in the data table that is the ValueMember. The control is bound to a Guid column in the Data Set (Binding Source) for the form. The Data Source Update Mode is set to OnPropertyChanged.
This is different from your sample application in that you sample is not bound to a data source in a database.
When the non-trappable error occurs, the text indicates "Guid should contain 32 digits with 4 dashes ..."
Thanks - Norm
Have you been able to resolve your issue ? Did you have a time to take a look at the attached sample. If you still have any concerns or questions I will be glad to help.
Regards
HI,
Could you please take a look at the attached sample and video file. Please let me know if you have any questions. Feel free to modify my sample if you think that your scenario is different.