المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : GridView: row focus on mouse right click before ContextMenu pops up.



C# Programming
06-24-2009, 06:11 PM
Google and I were not friends today, so I ask you guys here!


This project has GridView control and MenuStrip which is set in grid's ContextMenuStrip to pop up when user is pressing right mouse button over the grid.

When user is pressing right mouse button over GridView the current row is not automatically set to the row "under" mouse pointer.

How is it possible to change current row (focus on) to the row under mouse pointer at that point before toolstrip menu is shown?