The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I have a context menu that is associated with a form. In my form i also have a GridControl, which doesn''t want this context menu. How can i exclude the context menu only inside the grid?
ADAdministrator Syncfusion Team May 26, 2004 06:08 AM UTC
If a control does not have its ContextMenu property set, it will inherit the menu from its parent. I think this is what you are seeing in this case.
So, if you set the grid''s ContextMenu to a new empty menu, it will not display anything. (or, at least that what I saw when I tried it.)
//in formload
this.gridControl1.ContextMenu = new ContextMenu();