Can't Drag Column into Column Chooser

I am using SyncFusion WPF version 13.1.0.21. In my application, there is a SfDataGrid and I want to add a column chooser for users to manage column setup. I use the following code and it works in a simple standalone application. However, when I add the same code in to my main application which is a winform application hosting WPF component. 

var chooserWindow = new ColumnChooser(DataGrid);
chooserWindow.Width = 150;
chooserWindow.Height = 400;
DataGrid.GridColumnDragDropController = new GridColumnChooserController(DataGrid, chooserWindow);
chooserWindow.Owner = this;
chooserWindow.Show();

The problem is that when I drag the column into the column chooser, column disappears from the gird but it doesn't get added into column chooser window. Even if you open the column chooser again, it is still the same. 

Sometimes, the problem is that after dragging the column out of grid, there is a floating column header and it doesn't disappear even after release the mouse. I have attached the screenshots for your reference. 

Can you please advise? 

 

Attachment: screenshots_32eb9ff0.7z

1 Reply

DY Deivaselvan Y Syncfusion Team September 17, 2018 01:07 PM UTC

Hi Liang,

Thank you for contacting Syncfusion support.

We are unable to reproduce the reported issue with column dragging and Column chooser when the WPF control hosted in Windows Forms application. We have prepared a simple application along with the video illustration for the same and you could find the same from below.

Sample link
http://www.syncfusion.com/downloads/support/forum/139837/ze/SfDataGridDemo-1939064455.zip

Video Illustration:
http://www.syncfusion.com/downloads/support/forum/139837/ze/ColumnChooserDemo144772011 

If you still reproduce the issue, kindly revert us with the modified sample along with the video illustration to reproduce the reported issue at our end, thereby we could provide appropriate details at the earliest.

Regards,
Deivaselvan 


Loader.
Up arrow icon