public void BindCountry() { DataSet dsCountry = PersonClass.FillCountryNames(); cmbCountry.DataSource = dsCountry.Tables[0]; cmbCountry.DisplayMember = "CountryName"; cmbCountry.ValueMember = "CountryID"; }
private void CountryMaster_Load(object sender, EventArgs e) { DataSet dsCountry = PersonClass.FillCountryNames(); lstCountryMaster.DataSource = dsCountry.Tables[0]; lstCountryMaster.DisplayMember = "CountryName"; lstCountryMaster.ValueMember = "CountryID"; }