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.
Up arrow icon