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

Column Widths

Hi - We're formatting a GridDataBoundGrid in code, setting column widths explicitly. The grid is on a tab control, so is not initially visible when the form is displayed. When the grid does become visible, it appears that, for columns whose width has been set narrower than the text in the column header, the column width is reset so that the wide column header text is accomodated. (I don't think this happened in version 1.1 of the grid) Is there a way to prevent this from happening? Thanks Ivan Pelly

3 Replies

AD Administrator Syncfusion Team November 18, 2002 11:55 PM UTC

You can prevent the auto resize based on the column headers by setting the AutoResizeToFit property to False.

IP Ivan Pelly November 19, 2002 05:15 PM UTC

I'm not seeing a property of that name - which object would that be a property of? Thanks.

AD Administrator Syncfusion Team November 19, 2002 09:50 PM UTC

You will need version 1.5 which is available as an evaluation download as of last week. The property is GridDataBoundGrid.AllowResizeToFit

Live Chat Icon For mobile
Up arrow icon