Hi,
I am using UltraComboEditor in a WinGrid. I create the UltraComboEditor in the grid_InitializeRow method. The data is added as a semicolon-separated string. This works fine.
When I check an item in one comboBox of the row, I want to deselect the same item in all other comboboxes of the same row.
I handle this in the combo_ValueChanged event handler, and I tried to handle it also in the grd_CellChange event handler.
I search the other combo boxes by the following cast:
UltraComboEditor cmbSel = grdBalFad.Rows[0].Cells[ind].EditorComponent as UltraComboEditor;
Now I want to uncheck items by calling cmbSel.SetCheckState (items, System.Windows.Forms.CheckState.Unchecked);
The items parameter is a collection of items to uncheck ValueListItems from the cmbSel.Items collection.
I also tried to by changing the CheckState of the ValueListItem in the grd.Items collection.
Nothing changes in the checkstate of the combobox.
I noticed also that the cmbSel.SelectedItems collection is always empty.
Any idea how to solve this problem.
Thanks in advance and kind regards,
Hello,
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.