This is a migrated thread and some comments may be shown as answers.

Code generation for property

1 Answer 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lesley
Top achievements
Rank 1
lesley asked on 09 May 2014, 10:43 AM
Just recently, last two weeks, I have been getting a design time error in a winforms project  I am working on.

The error in a Visual Studio dialog:
Code generation for property 'PrintCellPaint' failed. Error was: 'Object does not match type.'

It appeared to occur only when I have a radgridview on a radPageView page and when I select a different page then save the form.

if the radGridView is databound the error changes to:
Code generation for property 'PropertyChanging' failed. Error was: 'Object does not match type.'

To test I tried this on a fresh winfoms project. VB or C#.

Added a radPageView with two pages.
Added a radGridView to one of the pages saved and opened the form. Select the other page and try to save the form. I get the above error.

Remove the RadGridView from the pageview and put it anywhere else on the form. No error.
Modifying any other control, resize a button, before saving: no error.
I also get the same error if I use a radDock instead of a radPageView.

I have tried this on two different machines, one with windows 8.1 and the other with windows 7. Both have VS 2013 profesional with update 1 and the Telerik winforms controls v.2014,1,402,40

All references to assemblies seem ok.
I have tried a repair on the winforms controls via the Telerik control panel, a repair of Vs2013 and a repair of Vs2013 update 1. All to no avail.

Any insights welcome, or any advise on how to diagnose the error further.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 14 May 2014, 11:49 AM
Hello lesley,

Thank you for contacting us.

We have such issue logged in our Feedback Portal. You can find it here. Since the problem is occurring at design time it is not possible to provide you with a workaround. In order to make sure that your case is covered when addressing this matter I would like to kindly ask you to provide me with a sample project and/or with more detailed steps which can be of help. You can also record a video if you find that appropriate.

Looking forward to your reply.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
lesley
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or