public void LoadCountry()
        {
            List <Country> countries = manager.GetAllCountryInfo();

            countryGridView.DataSource = countries;
            countryGridView.DataBind();
        }
Example #2
0
        private void LoadCountryDropdown()
        {
            List <Country> country = countryManager.GetAllCountryInfo();

            countryDropDownList.DataSource     = country;
            countryDropDownList.DataTextField  = "CountryName";
            countryDropDownList.DataValueField = "Id";
            countryDropDownList.DataBind();
        }