Current filter:
                                You should refresh the page.
                                Support Center
                                  • How can I determine the size of a column within a GridControl ?

                                    If i have a GridControl where the Dock is set to "Fill", then resize the form - the grid obviously changes size to match the form.
                                    However, the column's width always reports back as a static value depite the columns visibility changing size as the form is resized.

                                    I have attached a sample where if the form is resized, the values are displayed on the form's title/caption bar. You can see, no matter how big or small the grid gets - column 2 is set to 75 pixels.

                                    I found this as I would like to change the size of the popup container I have within column 2 so I need this value to set to the repositoryItemMemoExEdit1.popupFormSize


                                oops - forgot to add the sample code!


                                Hi Scott,

                                Thank you for the sample project. It was very helpful.

                                Please use the GridColumn.VisibleWidth property. It will return you an expected value.



                                Thank you Dimitros - that's working a treat !


                                You're welcome, Scott :) Please feel free to contact us in case of any difficulty. We are happy to help you at any time.


                                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-2017 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners