I'm not sure if I understood the question correctly, but do you have all the companies in the same table with models and in separate columns.
If that is the case, I suggest following kind of design:
Manufacturer -table
- manufacturerid (generated, primary key)
- name
Model -table
- modelid (generated, primary key)
- manufacturerid (foreign key to manufacturer)
- name
Now you could list the manufacturers in the first combo box. Based on the selection you could filter the second combobox items using the manufacturerid as the criteria.
You could fetch all the models in the beginning and just use a
DataView[
^] to list only appropriate models per each manufacturer selection. The criteria would be defined using
RowFilter[
^]
ADDITION:
Example for the data:
Manufacturer table
manufacturerid name
-------------- ----------
1 Nokia
2 Samsung
3 HTC
Model table
modelid manufacturerid name
------- -------------- ----------
1 1 C7
2 1 Lumia 900
3 1 Lumia 920
4 2 Galaxy S II
5 2 Galaxy S III
6 3 Desire X
7 3 Windows Phone 8X
8 3 One S
Now if Samsung is selected the rowfilter is set to define
manufacturerid = 2
so only two rows would be returned for the second combobox. The same mechanism applies to all manufacturers but the amount of rows is always different (the amount of models for that manufacturer).