1. How to remove an item from the combobox. I have tried remove and removeat function, but its not working. It moves it from the list but not from the combo items.
So say for instance I have 2items in a list
Cat
Dog
Combox.Items.RemoveAt("Dog"); // This does not work for some reason.
Hi,
You cannot remove, add, or edit the items in the UltraCombo. The list comes from the DataSource, so the only way to remove an item from the list is to remove that item from the DataSource you are binding to.
You could hide a row using the Hidden property, though. The InitializeRow event is usually a good place to do this.
How to get access to the hidden property from the combox?
I created a stored procedure to determine whether i need to add item to the combo box or not. So I am basically modifying the datasource. Giving me what I need back. But if the user wants to not hide the items. They just simple uncheck the box and I give them everything in the datasource that they ask for.
Hello Keith Dudley,
Please let me know if I may be of further assistance regarding the hide a row within the comboBox.
Please use the following code to hide a row within the comboBox: private void ultraCombo1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
if (e.Row.Index == 0) { e.Row.Hidden = true; }
Please let me know if you require further assistance in this matter.