views:

63

answers:

3

Is there a way to add a Header to the popup menu? I don't find a property for this.

A: 

This may not work in your situation, but whenever I needed to show a context menu off of a grid row that wasn't the current/highlighted row, I made that row the current row first, then showed the menu. That would eliminate the need for a header on the menu. I assume you're showing the context menu if the user right clicks on the row. Well before showing the context menu, make sure that row is current and highlighted.

Bob
A: 

You could also simulate a header on the context menu by putting the information you want to display in the header as the first item in the context menu. Put a separator (or perhaps two) underneath it and put no code behind it.

That visually separates the item and users will learn pretty quick that clicking the first item doesn't do anything.

Corin
A: 

Do as Corin says, but disable the first item as well. If you disable it, that should remove confusion entirely.

Cyclone