Ticket Q136957
Visible to All Users

Default Right Click Menu Xtra Grid Cell

created 16 years ago

Can you please help us on the following
When user right clicks on the xtrs grid cell, deafult right click menu appreas with options "Cut","Copy","Paste" and few other…
What we want when user right click on grid cell this deafult menu never appears and our own custom right click menu appears.
Our own custom rigth click menu is appearing, but when the cell is editable mode then default menu apperas we want either to disable default rigth click menu or all the times our own custom rigth click menu appears…
Thanks
Vineet

Show previous comments (2)
DevExpress Support Team 16 years ago

    Welcome!

      Hello Marina
      I need few more inputs from you on the issue …
      After using the code sent by you the default rigth click menu(Cut,Copy,Paste…) is not coming
      But we want our own rigth menu to appear over there …
      We tried to set e.Menu = ourCustomMenuStrip, but It did'nt work as e.Menu is readonly
      We also tried to set the gridControl.ContextMenuStrip = our own custom menu strip after clearing the default menu Items e.Menu.Items.Clear();
      Can you please help us on showing our own custom menu in all the cases …
      Thanks
      Vineet

      Stan (DevExpress Support) 16 years ago

        Hello Vineet,
        Please review the How to show a context menu for grid rows knowledgebase article that describes how to accomplish this task in greater details.
        Thanks,
        Stan.

        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.