У меня есть форма окна (net 2.0) с элементами управления на нем, связанными с сущностью (w/INotifyPropertyChanged) через BindingSource..works.Winform BindingSources - Вопрос
На той же форме, у меня есть выпадающий список, который также проводную вверх через BindingSource..works
Вот пример соответствующего кода:
m_PlanItemLookupBindingSource.DataSource = GetBusinessLogic().RetrievePaymentPlanLookups(); // Collection of PaymentPlans
paymentPlanType.Properties.DataSource = m_PlanItemLookupBindingSource;
paymentPlanType.Properties.DisplayMember = "Name";
paymentPlanType.Properties.ValueMember = "ID";
paymentPlanType.DataBindings.Add(new Binding("EditValue", m_PlanBindingSource, "PaymentPlanID", true, DataSourceUpdateMode.OnPropertyChanged, null, "D"));
agencyComission.DataBindings.Add(new Binding("EditValue", m_PlanBindingSource, "AgencyCommission", true, DataSourceUpdateMode.OnPropertyChanged, null, "P1"));
billingType.DataBindings.Add(new Binding("Text", m_PlanBindingSource, "BillingType"));
Так что, когда я изменить значение в раскрывающемся списке я думал, что свойство m_PlanItemLookupBindingSource Current будет меняться вместе с свойством PaymentPlanID объекта, который изменится.
Немного смущен.
Заранее спасибо, Стивен