public void LoadCountry() { List <Country> countries = manager.GetAllCountryInfo(); countryGridView.DataSource = countries; countryGridView.DataBind(); }
private void LoadCountryDropdown() { List <Country> country = countryManager.GetAllCountryInfo(); countryDropDownList.DataSource = country; countryDropDownList.DataTextField = "CountryName"; countryDropDownList.DataValueField = "Id"; countryDropDownList.DataBind(); }