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