I'm a newbie using Infragistics. I'm trying to add context menu to a specific row/column in UltraWinGrid, which im not able to. Looks like adding context menu to the grid is simple but adding it to a specific row/column is not straight forward. Can you please tell me how to do this?
Hi,
The ContextMenu class in DotNet, and the UltraToolbarsManager are both control-based. So you can only specify a ContextMenu for a control, not part of a control.
So in a case like this where you need a different context menu for parts of a control, you would typically trap MouseMove or MouseDown event and change the context menu based on what the mouse is currently over.
To find out what the mouse is over in the grid, check out these KB articles:
HOWTO:UltraWinGrid Mouse Position and Cell Identification
HOWTO:UltraWinGrid Mouse Position and Column Identification
HOWTO:UltraWinGrid Mouse Position and Row Identification