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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG - Auto size rows

Thread ID:





32472 Aug 1,2005 08:24 PM UTC Aug 1,2005 09:03 PM UTC WinForms 1
Tags: GridControl
Martin Cyr
Asked On August 1, 2005 08:24 PM UTC

Hi, I''m using GDBG to print a report. My problem is that I have a comments column that can be really long. If I autosize the columns, it looks awfull since it prints the first columns on one page and the comments on another page. What I''d like to do is to autosize the rows so that it fits the comments instead of the column. Or is there another tools from Syncfusion for such a purpose?

Administrator [Syncfusion]
Replied On August 1, 2005 09:03 PM UTC

I am not sure I understand. Do you want to autosize the rows instead of the columns? If so, first set grid.AllowResizeToFit = false. Then set grid.Model.ColWidths[col] = xxx to specify the colwidths you want to use on each column. Then you can call grid.Model.RowHeights.ResizeToFit to autosize the row heights, but keep the colwidths as explicitly set.


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