)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve the Copy paste issue in WinForms GridGroupingControl when the startup projects is in WPF?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: April 27, 2016 |
Last Revised Date: February 12, 2020

Resolve the copy paste issue

According to Windows Forms, can’t perform the copy paste options in GridGroupingControl when the startup project is in WPF. While opening the Windows Forms form from the WPF window, the keyboard messages does not pass to the WPF window.  Add the EnableWindowsFormsInterop() method in Startup event to enable the copy paste option.

<Application x:Class="AutoHideDemo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
StartupUri="Window1.xaml" Startup="Application_Startup" >

To enable the Windows Forms copy, paste options, when the Startup project is WPF.

C#

private void Application_Startup(object sender, StartupEventArgs e)
{
   WindowsFormsHost.EnableWindowsFormsInterop();
}

VB

Private Sub Application_Startup(ByVal sender As Object, ByVal e As StartupEventArgs)
   WindowsFormsHost.EnableWindowsFormsInterop()
End Sub

Show the copy paste value

Samples:

C#: Copy paste

VB: Copy paste

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon