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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Autosize of images

Thread ID:

Created:

Updated:

Platform:

Replies:

64446 Jul 20,2007 02:07 PM UTC Jul 20,2007 03:29 PM UTC WinForms 1
loading
Tags: Grouping
Pontus All
Asked On July 20, 2007 02:07 PM UTC

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

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.

Warning Icon 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.Close Icon

;