in windows forms i have two comboboxes first is for mobile manufacturer i.e nokia,samsung,sony and second combobox is for company's model like nokia pure view, samsung s3, htc one,
i want to change the model number as per the changes will happen to the first column, i means when user select nokia in the combobox1 then the combobox2 will show the company's model like nokia pure view, 6600,7610 etc etc from the next combobox, i dont want to save the model no. in the combobox's list i want to use the database connectivity with combobox so that i can update the new new upcoming model in the column then it will be easy so by reviewing i can bind the column with the combobox but how can i change the column when selection is change in combobox1
i prieously used the selection change event of the combobox with the strings saving all the models, but it is too hilarious that if i want to update the model i want to edit the whole software. so i decided it should be in a column so that i can update that but i dont know to logic how to change
sorry for my bad explanation i am weak in english
i have used this before
if ("samsung" == comboBox1.SelectedItem.ToString())
{
comboBox2.Items.AddRange(samsung);
}
else if ("apple" == comboBox1.SelectedItem.ToString())
{
comboBox2.Items.AddRange(apple);
}