Hi Jeffrey,
As I mentioned, the ContextMenu is of the DataGrid, and on one of the
ContextMenu MenuItems I want to know upon which row in the DataGrid the user
clicked to open the ContextMenu.
If I use the Control.MousePosition on the MenuItem.Click event handler, I
get the point where the MenuItem was clicked which is not the point where the
user clicked to open the ContextMenu. But I need to know the point where the
user clicked on the DataGrid before the ContextMenu was opened. But on
MenuItem.Click event handler the Control.MousePosition gives the point where
the specific MenuItem was clicked which is different from the point I'm
looking for.
For now I solve the problem by saving the point on the OnMouseUp event and
working with this saved point on the MenuItem.Click event handler.
Regarding "DataGrid AutoScroll" issue, I did get your sample, and by looking
on the sample I can say this is exactly how I used it. So I extended the
sample to prove how the AutoScroll steals the focus.
Please look at my post at
http://msdn.microsoft.com/newsgroups...e-5fc250c11468
I there you can see my attachment reproducing the AutoScroll focus stealing
(using the Outlook Express).
----------
Thanks
Sharon