Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,
                                     
                                      Is there any way to automatically growe according to column's text in aspxgridview columns?

                                0

                                Hi Cemil,

                                By design, when there is no column width defined (the default behavior), the actual width of each column will be adjusted by the web browser using the best fit approach. If necessary, you can also set the GridViewDataColumn.Width property explicitly.

                                By the way, we have a similar suggestion in our wish list: Best fit the column on a double click, on the edge between two columns.. Start tracking that report for voting for this feature. For now, we count the number of trackers as a voting system.

                                Thanks,
                                Serge

                                0

                                Hi Serge,

                                   Sorry, I'm late to reply. I think I can't explain the situation exactly. I don't want to set up columns width manually. Simply, I have a aspxgrid in a web form, and I fill it with data from sql codes. Then when page is loading, the data is on the grid columns doesn't fit .As you see In example in Grid.jpg, columns text is wrapping.

                                Thanks,

                                Grid.JPG
                                0

                                Hi Cemil,

                                Thank you for posting this image here. Please make certain that the ASPxGridView.SettingsBehavior.ColumnResizeMode property is set to the Disabled value. If this does not help, please send us a sample project, showing this glitch, and we will try to help you.

                                Thanks,
                                Plato

                                0

                                Hi,
                                  Thank you for replying, I attached grid.jpg and simple example about my problem. When I set ASPxGridView.SettingsBehavior.ColumnResizeMode property to disabled, unnecessary space appeared in grid columns (grid.jpg in WebSite4 folder). So I wanted to Autofit columns. All I want, automatic growing up columns, so I don't want to think about columns width or I want to Columns width, all depends Data text length on columns.

                                Thanks,

                                WebSite4.rar
                                0

                                Hi Cemil,

                                Thank you for sending the project to us. There are two different factors, which cause this behavior. First, you set the ASPxGridView's Width property to 100%. It means that the control's content should be spread over the whole browser window. Also, the column's width cannot be less than the column's Caption. Generally, we do not set the Width property of a column explicitly, and it is a browser responsibility to decide how to show the TABLE element, representing the grid on the client side.

                                Thanks,
                                Plato

                                0

                                Thank You for interest,
                                  Although I'm not pleased,

                                Cemil

                                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