I have UltraCombobox A, and UltraCombobox B. Both UltraCombobox A and B are related to each other. UltraCombobox A : Color serial No UltraCombobox B : Color part No
Note: Color serial No, and Color part No belongs to a color type.
if user select an distinct item in combo box A, combo box B will populate exists Color part No that are related to Color serial No. from the dataset or database.
or
if user select an distinct item in combo box B combo box A will populate exists Color serial No that are related to Color part No. from the dataset or database.
I am basically limiting the user to only query the items that only exist relate to each other by color serial and part no.
Can someone give me an ideal to effectively design this logic. The logic I am using is taking to long, I am constantly using linq to pull from the dataset or database everytime the combox event is called. I am struggling
Hi,
Here's what I would do:
Populate both lists up-front with all of the possible value.
When the user makes a selection from Combo A, use the ColumnFilters on Combo B to filter out all but the valid options. And vice versa for Combo B to filter combo A.
You will also need some way to remove the fitlers, of course, and essentially re-set both combos.
Can you send me a example helloworld console winform with two UltraCombobox so i can get an ideal ?
I don't have a sample of this using two UltraCombos, but there is a very similar sample using two UltraDropDown control inside a WinGrid.
Creating a dropdown list in a grid cell whose list values are dependent on another cell - Windows Forms - Infragistics Community
That should give you a good idea of how it works.