저는 SelectedValue
이 RegistrationBindingSource
에 결합되고 DisplayMember
이 ProbationBindingSource
에 결합 된 ProbationComboBox
을가집니다. DataBinding : SelectedValue가 변경되면 ComboBox.Text가 업데이트되지 않습니까?
내가 RegistrationBindingSource.ResetCurrentItem()
전화
SelectedValue
속성이
RegistrationBindingSource.ProbationID()
에서 올바른 값으로 갱신되지만
Text
속성이 업데이트되지 않습니다. I 설치가 콤보 상자에 데이터 바인딩 방법
은 다음과 같습니다
ProbationComboBox.DataBindings.Add(New System.Windows.Forms.Binding(_
"SelectedValue", Me.RegistrationBindingSource, "ProbationID", True))
ProbationComboBox.DataSource = Me.ProbationBindingSource
ProbationComboBox.DisplayMember = "probation"
ProbationComboBox.ValueMember = "id"
나는 내가 임시 수정으로 이것을 사용했습니다, 바인딩 문제를 알아낼 수까지 :
DataRow row = CType(ProbationBindingSource.Current, DataRowView).Row
ProbationComboBox.Text = CType(row, RootNamespace.DataSet.probationRow).probation
어떤 아이디어? 감사!
나는 이것을 시험해 보았다. 행운이 없었다. 필자는 스키마를 다시 읽도록 강제하기 위해 인수를 True로 전달하려고 시도했지만 도움이되지 않았습니다. – Rob