This is an example for the How to filter a second LookUp column based on a first LookUp column's value Knowledge Base article. Please refer to the article for the explanation.
Question Comments
Added By: Lexikos at: 3/22/2013 1:44:56 AM
this example is not complete at all!!!!
Added By: Alex Xie(GM) at: 5/13/2013 2:30:50 AMthis sample has a bug, if USA has a city code 202, and Russia has a city code 202, then there will be a problem, please try to use the following code lines in function filldataset
dataSet11.Countries.AddCountriesRow("USA", "1", 1);
dataSet11.Countries.AddCountriesRow("Germany", "49", 2);
dataSet11.Countries.AddCountriesRow("France", "33", 3);
dataSet11.Countries.AddCountriesRow("Great Britain", "44", 4);
dataSet11.Countries.AddCountriesRow("Italy", "39", 5);
dataSet11.Countries.AddCountriesRow("Russia", "7", 6);
dataSet11.Cities.AddCitiesRow("Washington", "202", "1", 1);
dataSet11.Cities.AddCitiesRow("Los Angeles", "213", "1", 2);
dataSet11.Cities.AddCitiesRow("San Francisco", "415", "1", 3);
dataSet11.Cities.AddCitiesRow("New-York", "718", "1", 4);
dataSet11.Cities.AddCitiesRow("Berlin", "30", "49", 5);
dataSet11.Cities.AddCitiesRow("Bonn", "228", "49", 6);
dataSet11.Cities.AddCitiesRow("Munhen", "89", "49", 7);
dataSet11.Cities.AddCitiesRow("Paris", "1", "33", 8);
dataSet11.Cities.AddCitiesRow("Lion", "19", "33", 9);
dataSet11.Cities.AddCitiesRow("London", "1274", "44", 10);
dataSet11.Cities.AddCitiesRow("Glasgo", "141", "44", 11);
dataSet11.Cities.AddCitiesRow("Rome", "6", "39", 12);
dataSet11.Cities.AddCitiesRow("Milan", "2", "39", 13);
dataSet11.Cities.AddCitiesRow("Moscow", "202", "7", 14);
dataSet11.Phones.AddPhonesRow(1, "39", "6", "xxx");
dataSet11.Phones.AddPhonesRow(2, "33", "19", "yyy");
dataSet11.Phones.AddPhonesRow(3, "1", "202", "zzz");
then run the sample, then select Russia, then select Moscow , and tab out, you'll see the values changed to Washington.
Added By: Svetlana (DevExpress Support) at: 10/16/2015 1:22:57 AMHello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T301102: E898 does not work correctly when identical codes are used. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.