Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • 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

                                0

                                oops - forgot to add the sample code!

                                dxSample.zip
                                0

                                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.

                                Thanks
                                Dimitros

                                0

                                Thank you Dimitros - that's working a treat !

                                0

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

                                Dimitros

                                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