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
close icon

DataBoundGrid row size refresh?

Hi, I am currently having a problem getting the row size of a databound grid to refresh when I set them as follows. this.addFilterGrid.Model.Cols.Size["company"] = 150; when I do this at the first it doesn''t change but on subsequent refreshes it adjusts the size of the column... is there a work around for this? Thanks Andy J

1 Reply

AD Administrator Syncfusion Team March 23, 2004 05:29 AM UTC

If you want to explicitly set the column sizes initialy, then also try setting this.grid.AllowResizeToFit = false; When this property is true, the grid will try to autosize the columns based on the header content. This will interfere with explicit sizing if you do not turn it off.

Loader.
Live Chat Icon For mobile
Up arrow icon