Hi Michael,
Thanks for contacting Syncfusion support.
We have checked your query “Context menu for DetailViewGrid only”. You can able to achieve this requirement by initialize the context menu for the DetailsViewGrid only as like the below provided code sample.
public MainWindow()
{
InitializeComponent();
//à Here we initialize the context menu for details view only
this.FirstLevelNestedGrid1.RecordContextMenu = new ContextMenu() { Name = "RecordMenu" };
Binding b = new Binding();
b.Source = this.FirstLevelNestedGrid1.RecordContextMenu;
b.Path = new PropertyPath("DataContext");
var menuitem = new MenuItem() { Header = "Copy", Command = new BaseCommand(OnCopyClicked) };
menuitem.SetBinding(MenuItem.CommandParameterProperty, b);
this.FirstLevelNestedGrid1.RecordContextMenu.Items.Add(menuitem);
} |
We have the created the sample based upon your requirement and attached that sample for your reference you can able to get it from the below link
Please refer the below link for getting information about the Context menu
Regards,
Balamurugan R