We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Details View Context Menu

Thread ID:





132151 Aug 16,2017 07:55 PM UTC Aug 21,2017 04:18 AM UTC WPF 3
Tags: SfDataGrid
Michael Griffith
Asked On August 16, 2017 07:55 PM UTC

I'm curious to know how to create a context menu for details view only.

Balamurugan Rajaraman [Syncfusion]
Replied On August 17, 2017 01:45 PM UTC

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() 
//à 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); 
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 
Balamurugan R 

Michael Griffith
Replied On August 18, 2017 05:35 PM UTC

Thanks again.

Balamurugan Rajaraman [Syncfusion]
Replied On August 21, 2017 04:18 AM UTC

Hi Michael, 
Thanks for the update. 
Please let us know if you need any further assist on this. 
Balamurugan R 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon