Binding to a Datasource Controls
-----------------------------------
Dictionary<int, string> source= PetDataAccess.GetStateByCountryId(stateId);
comboBox.DataSource = new BindingSource(breeds, null); comboBox.DisplayMember = "value";
comboBox.ValueMember = "key";
Wednesday, December 14, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment