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.

ResizetoFit method causing run-time error

Thread ID:

Created:

Updated:

Platform:

Replies:

52316 Nov 27,2006 01:40 AM Nov 29,2006 06:27 AM Windows Forms 6
loading
Tags: GridControl
Patya
Asked On November 27, 2006 01:40 AM

Hi,

I am using the following sbippet of code to handle the resizing of the columns:

m_Grid.Model.ColWidths.ResizeToFit(GridRangeInfo.Table());
m_Grid.Model.RowHeights.ResizeToFit(GridRangeInfo.Table());

where m_grid is the grid control object.

It throws an error at run-time as attached. i am using 4.202.0.37 version.

Please advise.

regards.. Patya

Doc110.zip

Patya
Replied On November 27, 2006 03:15 AM

Can anyone pls suggest a solution for the problem mentioned below???

>Hi,

I am using the following sbippet of code to handle the resizing of the columns:

m_Grid.Model.ColWidths.ResizeToFit(GridRangeInfo.Table());
m_Grid.Model.RowHeights.ResizeToFit(GridRangeInfo.Table());

where m_grid is the grid control object.

It throws an error at run-time as attached. i am using 4.202.0.37 version.

Please advise.

regards.. Patya

Doc110.zip

Administrator [Syncfusion]
Replied On November 27, 2006 03:48 AM

Hi Patya,

Thanks for the update. We are glad that you could successfully install v4.202.0.37 on your machine.

Please follow the steps below :

1. Delete all Syncfusion references in the GAC (C:\Windows\Assembly on a WindowsXP machine or C:\Winnt\Assembly on a Windows 2000 machine)

2. Delete all the contents of the folder ...\Syncfusion\Essential Studio\Assemblies

3. Bring up the v4.202.0.37 Assembly Manager tool and run it choosing the "Default Prebuilt" option. The Assembly Manager tool can be accessed from Start Menu >> Programs >> Syncfusion >> Essential Suite 4.202.0.37 >> Utilities >> Assembly Manager.

4. Open your project in the designer. Remove all the Syncfusion references and re-add them from the folder C:\Program Files\Syncfusion\Essential Studio\Assemblies linking to the appropriate .NET framework version. Make sure they are all of version 4.202.0.37 if you are using VS.NET 2003 or 3.200.1.1 if you are using VS.NET 2002.

5. Set the CopyLocal property to false for all Syncfusion references to false in the properties grid of the designer.

Now rebuild your application and run it. Everything should work fine now. Let me know if you need further assistance.

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On November 27, 2006 03:57 AM

Haneef,

I have uninstalled 3.2 and installed 4.2 version. Also checked the versions of all the dlls being used and they are rightly pointing to 4.2. I am using VS 2005.

Also checked GAC for any remaining dlls but all are of V4.2.

Could you please advise further.

Regards,
Preetam

>Hi,

I am using the following sbippet of code to handle the resizing of the columns:

m_Grid.Model.ColWidths.ResizeToFit(GridRangeInfo.Table());
m_Grid.Model.RowHeights.ResizeToFit(GridRangeInfo.Table());

where m_grid is the grid control object.

It throws an error at run-time as attached. i am using 4.202.0.37 version.

Please advise.

regards.. Patya

Doc110.zip

Patya
Replied On November 27, 2006 11:09 PM

Haneef,

Could u pls let me know if I can have any workarounds for this problem as I am not able to move ahead...

Regards,
Patya

>Hi,

I am using the following sbippet of code to handle the resizing of the columns:

m_Grid.Model.ColWidths.ResizeToFit(GridRangeInfo.Table());
m_Grid.Model.RowHeights.ResizeToFit(GridRangeInfo.Table());

where m_grid is the grid control object.

It throws an error at run-time as attached. i am using 4.202.0.37 version.

Please advise.

regards.. Patya

Doc110.zip

Administrator [Syncfusion]
Replied On November 28, 2006 12:57 AM

Hi Patya,

We will work out for a solution and let you know the details soon. Thanks for being patience.

Best regards,
Haneef

Patya
Replied On November 29, 2006 06:27 AM


Hi..
We finally resolved this issue. It was another 3rd party dll which used 3.201 version reference causing the error to be displayed.

Thanks again for all the help.

Regards,
Patya

>Hi Patya,

We will work out for a solution and let you know the details soon. Thanks for being patience.

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.

;