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.
Unfortunately, activation email could not send to your email. Please try again.

Autosize of images

Thread ID:

Created:

Updated:

Platform:

Replies:

64446 Jul 20,2007 10:07 AM Jul 20,2007 11:29 AM Windows Forms 1
loading
Tags: Grouping
Pontus All
Asked On July 20, 2007 10:07 AM

Hello,

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


Thanks


Sample145.zip

haneefm [Syncfusion]
Replied On July 20, 2007 11:29 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;