DataGrid stealing focus OnListChanged

  • Thread starter Thread starter Matthew Fitzpatrick
  • Start date Start date
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?)
 
I have the same problem too. Search my post here with "datagrid
zorder" and you will find details. I have exhausted all kinds of
work-around that I can think of and none has worked so far. Microsoft
should fix this annoying bug.
 
Back
Top