DataRow drCityRow1 = dtCityTable.NewRow();
drCityRow1["CityId"] = "1";
drCityRow1["CityName"] = "Delhi"
drCityRow1["CountryID"] = "2"; // Add CountryID Column in City table for Relation Between City And Country
dtCountryTable.Rows.Add(drCountryRow2);
When You want City By Country then
Use this :
Dim Drow() As DataRow
Drow = dtCityTable.Select("CountryID = "+ DDLCountry.selectedValue.tostring());
http://ajaypatelfromsanthal.blogspot.in
Shailesh21235, if this helps please login to Mark As Answer. |
Reply | Alert Moderator