We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to disallow DataGrid.Net context menu?

How to disallow DataGrid.Net context menu, when mouse is over column headers

1 Reply

AD Administrator Syncfusion Team May 15, 2004 06:10 AM UTC

This forum is for questions on Essential Grid controls, not Windows Forms controls. You might want to post this question elsewhere. I did not try this, so I do not know if it will work or not. But you migh try deriving the DataGrid, overriding OnMouseDown, and if the point is in a column header and if the e.Button is right, then do not call the base class.

Live Chat Icon For mobile
Up arrow icon