Hi, i bind a datatable to a ultracombo. in the datatable i have arround 10000 rows. i have a field account number.on a winform i have a textbox where i enter a account number with this i want find it in the ultracombo (it exists) and go to the row and mark it as i normal selected .
is that possible
Hi,
You lost me on your last post.
martin2004 said:when i enter it in my textbox and set the value
I don't understand. Typing a number into the UltraCombo will set the Text property of the UltraCombo, not the Value. Are you saying that in addition to the typing in the text, you are also setting the Value in code somehow? Why would you do that?
martin2004 said: Me.cboaccount.Value = Me.txtaccount.Text.Trim
Are the values in your ValueMember column strings? You are setting the value to a string here, and the ValueMember values are typically numeric, so if that's the case it will not work. You have to make sure the DataTypes match up correctly or the UltraCombo will not find the correct item.
Hi Mike, when i look in the Ultracombo i have for example the following number 929191when i enter it in my textbox and set the value of the combo nothing happens. it shows me the value and thats it.no jump to the correct rowi set Me.cboaccount.Value = Me.txtaccount.Text.Trim
If you know the value you want, then all you have to do is set the Value property of the UltraCombo to that value. You do not have to search the list and select the item - the UltraCombo will handle that for you when you set the Value.
But... if you want to search the list, the easiest thing to do is cast the UltraCombo control to an IValueList and use the GetText method.