Data Grid Event Places New Window underneath

Dec 10, 2009 at 10:51 PM

I have a DataGrid and when the user double clicks on a row I catch the event and display a new window with detail informaton.  The new window displays under the the window with the DataGrid.  When I trap button click events from the DataGrid Window the new window is displayed above the DataGrid's window!  All  New windows are created with the same code.  The only way I can get the detail Window to load on top is with TopMost which is not an optimial solution because when other windows are opened the detail window remains on top, which is what TopMost is supposed to do but not what I want.  Any help would be greatly appreciated.

Dec 12, 2009 at 12:57 AM


It would help if you could send a simple project with your code that shows above described behavior.