BindingSource..works를 통해 엔티티 (W/INotifyPropertyChanged)에 바인딩 된 컨트롤이있는 Windows 양식 (net 2.0)이 있습니다. 내가 값을 변경할 때 그래서Winform BindingSources - 질문
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"));
: 나는 또한 여기 BindingSource..works
를 통해 연결되어 드롭 다운 목록이 같은 형태에
는 관련 코드의 샘플입니다 드롭 다운 목록에서 m_PlanItemLookupBindingSource Current 속성이 변경되는 엔티티의 PaymentPlanID 속성과 함께 변경 될 것이라고 생각했습니다.
조금 혼란 스럽습니다. 미리
감사 스티븐 BindingSource에 상기 제어 값을 취하고 BindingSource에의 위치 등록에 의해 결정된 현재의 목적은 기본 소스에 설정