G
Guest
I have a windows form containing a listbox and a datagrid. Eac
control's DataSource is a different DataView from the same DataTable
Each control has its own binding context. The pseudo-code I use to se
up the controls is as follows
listBox.DataSource = view1
listBox.DisplayMember = "Field1"
listBox.BindingContext = new BindingContext()
dataGrid.DataSource = view2
dataGrid.BindingContext = new BindingContext()
If I make changes to any of the cells of the top 2 rows of th
datagrid, I get a SelectedIndexChanged event raised for the listBox
This is driving me crazy for the past 2 days. Is there anyway to kee
that event from happening or to test that it is bogus??
Thanks for the help
Dav
control's DataSource is a different DataView from the same DataTable
Each control has its own binding context. The pseudo-code I use to se
up the controls is as follows
listBox.DataSource = view1
listBox.DisplayMember = "Field1"
listBox.BindingContext = new BindingContext()
dataGrid.DataSource = view2
dataGrid.BindingContext = new BindingContext()
If I make changes to any of the cells of the top 2 rows of th
datagrid, I get a SelectedIndexChanged event raised for the listBox
This is driving me crazy for the past 2 days. Is there anyway to kee
that event from happening or to test that it is bogus??
Thanks for the help
Dav