Current filter:
                                You should refresh the page.
                                Support Center
                                  • I would like to apply programmatically best fit for all columns of my gridview, and I haven't find whether it was possible in C#.
                                    I've seen it was possible in VB through the ApplyBestFit() method, so I expect there is an equivalent method for C# (?).

                                    Thank you in advance for your response.

                                1 Solution

                                Creation Date Rating Importance Sort by

                                Hi Celine,

                                You can use the GridView.BestFitColumns() method to accomplish this task.
                                Please review the following article in help : XtraGrid GridView.BestFitColumns Method.


                                If you need additional product information, write to us at 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, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

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