I'm looking for a step by step or sample on the most basic of items: a context menu that only appears when right-clicking in the data row portion of a GridView.
I do not want to alter the context menus that appear when right-clicking any of the header areas of the header areas of the grid. I simply want to add a new context menu whenever one or more cells are selected in the grid.
In my case, the GridView is MultiSelect and ReadOnly.
I'm assuming that I'm going to have to trap the right-mouse click and somehow determine if I'm right-click inside the data row portion of the GridView and if so, fire off my context menu.
A sample with this would really be nice.
Thanks!
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Shannon,
Thank you for your question. The easiest way to accomplish this goal is to handle the PopupMenuShowing event.
I have attached a sample project, which demonstrates how to implement this feature. Please review it and inform me whether this approach suits your needs.
Thanks,
Stan
Thank you. Your sample was exactly what I needed.