Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to modify the context menu of grid columns

$
0
0

The following example demonstrates how to customize the grid's context menu at runtime. For instance this sample demonstrates how to remove the default 'Show Column Chooser' menu item from the Column Context Menu, and add a custom item instead.

Question Comments

Added By: Sævar Kristinsson at: 2/6/2013 6:42:06 AM    

Hi, I would want to modify the column header context menu in design time. The only example I have found that touches this topic is this example or similar to it i.e. modifying the context menu in runtime. Could you guys give an example on how to do this in design time?

Added By: Thomas R Melinsky at: 5/27/2014 6:18:22 AM    

Is there a new version of this example for WPF that isn't event driven?

Added By: Ilya (DevExpress Support) at: 5/27/2014 9:08:19 AM    

Hi Thomas,
Currently, the approach demonstrated in his example is the appropriate way to customize the grid popup menu at runtime. Would you please clarify why it is not an option for you?


Viewing all articles
Browse latest Browse all 7205

Trending Articles