The radgrid view has many different context menus it can show depending on what row you are on.
Header
Column Header
Column Filter Row (Contains, Begins With ....)
FilterRow (Type and highlights Yellow if found in Grid Results)
DataRow
private void gvResults_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
// How to tell which row I am in so I can change if needed the context menu?
}
// This is how I can tell if it is a Data Row
GridDataCellElement dataCell = e.ContextMenuProvider as GridDataCellElement;
if (dataCell == null)
return;
// What about the others?
//How can I tell (Column Header, Column Filter, Row Filter etc.)