The ContextMenu can be disabled for a TextBox in edit mode by deriving a new class from GridCellTextBoxRenderer and overriding the OnWireEditUIElement where ContextMenuOpening event of TextBox could be handled. In WPF we need to set ContextMenu as null in OnWireEditUIElemnt otherwise ContextMenuOpening event is not fired, it’s behavior of Framework.
Note: This can also be done for GridNumericColumn by deriving a new class from GridCellNumericRenderer.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:|
or the page will be automatically redirected to sign-in page in 10 seconds.