Hi Guys,
What is the best way to implement hide and unhide column headers feature when user right click on the ultragrid column headers? I am thinking of using a contextmenustrip and attach it to the grid. what would be the best way to implement this If i want the contextmenustrip to appear only when the user clicks on the columnheader.
Hi,
This will get you most of the way there:
HOWTO:UltraWinGrid Mouse Position and Column Identification
This code detects anywhere on the column, so you just have to modify it a little and only call GetContext if the element you get back from ElementFromPoint is a HeaderUIElement.