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

ResizetoFit method causing run-time error

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

6 Replies

PA Patya November 27, 2006 08:15 AM UTC

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


AD Administrator Syncfusion Team November 27, 2006 08:48 AM UTC

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


AD Administrator Syncfusion Team November 27, 2006 08:57 AM UTC

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


PA Patya November 28, 2006 04:09 AM UTC

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


AD Administrator Syncfusion Team November 28, 2006 05:57 AM UTC

Hi Patya,

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

Best regards,
Haneef


PA Patya November 29, 2006 11:27 AM UTC


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

Loader.
Live Chat Icon For mobile
Up arrow icon