Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I need a code sample to prevent a drag and drop option for a particular column from grid to column chooser.

                                    Actually I don't want to hide these columns from header to column chooser

                                    Please help me to find out a solution

                                    Please note: from grid to column chooser and i'm using WPF GridControl

                                0

                                Hi shine,

                                Thank you for your inquiry. I suggest you set the ColumnBase.AllowMoving property to False to accomplish this task.

                                Let me know if you need any further assistance.

                                Thanks,
                                Alexander

                                0

                                Thanks for the replay

                                But this solution is not acceptable because the column can move around (the order of the column can be adjusted)

                                And the same time these columns can't hide from the header.

                                0

                                Hi Shine,

                                Thank you for the clarification. Now I understand the problem. DXGrid does not provide a way to accomplish this task out-of-the box. I have created a suggestion regarding this: Add the capability to prevent an end-user from hiding a grid column.

                                Currently, DXGrid supports the DataViewBase.AllowMoveColumnToDropArea property. However, this functionality differs from the one you requested.

                                Please give us some time to try to workaround this issue. We will answer as soon as possible.

                                Thanks,
                                Alexander

                                0

                                Thanks for the replay..
                                Please provide a solution for this issue ASAP

                                And one more question, is there any event to track the dragging operation a column to column chooser?

                                0

                                Hello Shine,

                                We do not see a workaround right now. If we find any, we will post it in thread ID S38987. As for dragging events, we do not have a special event, but you can create your custom column chooser and implement what you need: How to: Create a Custom Column Chooser . If you need further assistance, please create a separate thread.

                                Thank you, Marina

                                0

                                Thanks for the response.

                                Please let me know whether you found any workaround for my issue.

                                0

                                Hello Shine,

                                You will be notified by mail if we find a workaround. At the moment, we do not see a good solution.

                                Thank you, Marina

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners