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, Clay!
If I put an editable GridControl on a form and handle its CurrentCellControlGotFocus event, the TextBoxControl''s ContextMenu (e.Control.ContextMenu) is an empty ContextMenu object instead of null (set by GridTextBoxControl.OnGotFocus() method. WHY???).
This is a problem as ContextMenu takes precedence over the ContextMenuStrip property (as written in MSDN "Control.ContextMenuStrip Property", Remarks section) and I want to use that also if the current cell is being edited.
(I put up my ContextMenuStrip in the OnCurrentCellStartEditing override of my derived GridControl).
ADAdministrator Syncfusion Team July 12, 2005 06:24 PM UTC
The default contect menu of the cell controls will vary depending upon the actual control.
Have you tried setting e.Control.ContextMenu = null in OnCurrentCellGotFocus to see if that gives you what you need. If not, then you could loop through teh grid.CelRenderer''s class in Form.Load and set cellRenderer.Control.ContextMenu = null for any or all of the cell controls at that point as well.
ADAdministrator Syncfusion Team July 13, 2005 06:24 AM UTC