M
Matthew Fitzpatrick
I have a class (MyDataList) which implements CollectionBase and
IBindingList. This class is bound to a data grid.
Whenever my MyDataList is updated [example: OnListChanged(new
ListChangedEventArgs(ListChangedType.Reset,-1));] (another thread invokes
updates this on the UI thread) the form containing the DataGrid takes focus
and then acts like something set TopMost = true on the containing form!
I can't figure out what is causing this, and it's driving me insane!! Has
anyone encountered this before, and found a fix? Or does anyone have a
suggestion? (extend DataGrid and override something? use interop to
disable a form taking focus?)
IBindingList. This class is bound to a data grid.
Whenever my MyDataList is updated [example: OnListChanged(new
ListChangedEventArgs(ListChangedType.Reset,-1));] (another thread invokes
updates this on the UI thread) the form containing the DataGrid takes focus
and then acts like something set TopMost = true on the containing form!
I can't figure out what is causing this, and it's driving me insane!! Has
anyone encountered this before, and found a fix? Or does anyone have a
suggestion? (extend DataGrid and override something? use interop to
disable a form taking focus?)