I have a situation where I have a list of topics (stored in a datatable) that I would like to tie to multiple dropdownlists on separate tabs of my form. In doing so, it appears that when I change the value of one, it changes the value of the other, triggering all of the index_changed events and every other repercussion that goes along with that (default values, etc.).
Is there a way to tie this same datatable to multiple dropdownlists without having the selections mirror one another? I realize that I could loop over the table and add items but I would rather not go down that road. The code that I am using to bind is below. Any help would be appreciated.
With ddSMTaskType
.BeginUpdate()
.ValueMember = dtTaskType.Columns(0).ColumnName
.DisplayMember = .ValueMember
.DataSource = dtTaskType
.SelectedValue = "Meeting"
.EndUpdate()
End With
With ddSTTaskType
.BeginUpdate()
.ValueMember = dtTaskType.Columns(0).ColumnName
.DisplayMember = .ValueMember
.DataSource = dtTaskType
.SelectedIndex = 0
.EndUpdate()
End With
Is there a way to tie this same datatable to multiple dropdownlists without having the selections mirror one another? I realize that I could loop over the table and add items but I would rather not go down that road. The code that I am using to bind is below. Any help would be appreciated.
With ddSMTaskType
.BeginUpdate()
.ValueMember = dtTaskType.Columns(0).ColumnName
.DisplayMember = .ValueMember
.DataSource = dtTaskType
.SelectedValue = "Meeting"
.EndUpdate()
End With
With ddSTTaskType
.BeginUpdate()
.ValueMember = dtTaskType.Columns(0).ColumnName
.DisplayMember = .ValueMember
.DataSource = dtTaskType
.SelectedIndex = 0
.EndUpdate()
End With