Dear Mike Saltzman,
I used ultracombo v9.1, in C# VS2005.
i am filling the ultracombo at runtime with a dataset.
using code below
System.Data.SqlClient.
SqlDataAdapter daDocs = new System.Data.SqlClient.SqlDataAdapter("spFrmFind_DocNos", DBConnection);
daDocs.Fill(dtable, "spFrmFind_DocNos");
Ucmb_DocNos.DataSource = dtable;
where Ucmb_DocNos is an UltraCombo control placed on my form.
its autocomplete mode is set to SuggestAppend.
ultra combo is used to show the document no and document date to the users, and enter a new documnet no as well.
i am also using the following methods like KeyPress, KeyDown and RowSelect to do some db works.
At runtime
when i select the one of the items in the ultra combo, it acts fine, but as soon as i press the delete button to delete one of the characters in the editor box it gives the following error.
it only gives error when i try to edit any document number which is already in the list of the ultracombo (or you can say the saved document nos.), and if enters a new number and delete one its characters it doesnt give any error.
e.g.
number in the list is 1000
i deleted the last zero to enter a new number which will be 100 and then the erros occurs.
if i enter a new number i.e. 123 and delets 3 or 2 or 1 it acts fine.
i hope i have made myself clear.
instead of delete button pressing backspace button doesnt give error at all in any case.
Please guide me.
sheraz
Hi Sheraz,
I can't see any reason why that error message should occur while you are typing in the Combo. If you are typing into it, then it's obviously in edit mode, so something is wrong there.
My best guess is that something you are doing in one of the key events (which you mentioned you are handling) is doing something that is taking the Combo out of edit mode while you are typing. As a test, try commenting out the code in the Key events of the Combo and see if the problem goes away.
Hey,
I tried commenting out the keydown event. I am getting the error even after i do that.
It happens when i hit backspace on the ultracombo. Any Suggestions.
Regards
Amarnath
Hi Amarnath,
I'm afraid I have no explanation for that, then. I recommend that you get the latest service release (if you do not already have it).
How to get the latest service release - Infragistics Community
If that does not help, then maybe you could post a small sample project which reproduces the exception. To post an attachment, go to the Options tab.