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

GDBG - Auto size rows

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?

1 Reply

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon