Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Prevent context menu from showing when clicking DataGridView header or white space

$
0
0
I have a context menu strip and have set my DataGridView ContextMenuStrip property to it. I don't want the context menu to pop-up when (1) Clicking the DataGridView column header or (2) Clicking on any of the white space (non-rows) in the grid. I've tried about everything I can think of and I'm at a loss.

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>