We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Auto Column Resize

Thread ID:





18470 Aug 31,2004 10:53 PM UTC Sep 1,2004 08:32 AM UTC WinForms 1
Tags: EditControl
Todd Swygert
Asked On August 31, 2004 10:53 PM UTC

How do I auto size my columns so that the columns take up the entire area of my grid width. I''m using the ResizeToFit method, and I''ve tried all the GridResizeToFitOptions, but my column data does not push out the columns enough to fill the grid. Thanks, Todd

Administrator [Syncfusion]
Replied On September 1, 2004 08:32 AM UTC

You may want to post your Essential Grid questions in our Grid Forum. Currently, there is no property that will allow the grid to fill the client area. If you want this behavior, one way is to dynamically size the right-most column to fill up any empty space. This will let the default sizing (or explicit sizing if you want it) work for the other columns. You do this in QueryColWidth. Here is a forum link that discusses this. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=2699 If you want all columns to grow and contract as you size the grid, you can also do this in QueryColWidth. The Grid\Samples\DataBound\GridDataBoundImageCell has code that does this.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon