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

Autosize of images

Hello,

What can I do to stop making the columns becoming so wide, when they are filled with bitmaps or images?


Thanks


Sample145.zip

1 Reply

HA haneefm Syncfusion Team July 20, 2007 03:29 PM UTC

Hi Pontus,

You would probably have to call ResizeToFit method initially (say in the bottom of the Form_Load event) to size things originally. You could use code such as:

[c#]
//nCol is a Image Column Index.
this.grid.Model.ColWidths.ResizeToFit(GridRangeInfo.Col(nCol));

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon