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

inherited from form, issue with radgrid

6 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 14 Mar 2011, 11:43 AM
Hello,

i just created a "base" form for my project and added a radgrid. I've set the "modifier" - property to protected (radgrid).
Now when i inherit from my base form the property - toolbox in VS 2010 is grey. (i cant edit properties).
All other controls work as expected in this case.

Is this a bug or did i forgot something?

thx for help

6 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 14 Mar 2011, 11:57 AM
Hello,

Yes, this is the case no matter what you set the access modifier to.
Please see the answers in this forum post and also this forum post for more information

Hope this helps
Richard
0
Emanuel Varga
Top achievements
Rank 1
answered on 14 Mar 2011, 12:05 PM
Hello,

What is the type of your project?, if you want to create a control you should create a class library project not a windows forms app.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
Patrick
Top achievements
Rank 1
answered on 14 Mar 2011, 12:09 PM
This is what i did :)
0
Emanuel Varga
Top achievements
Rank 1
answered on 14 Mar 2011, 12:10 PM
Thought so,

Please change the type of your project and it will work with no problems.

Best Regards,
Emanuel Varga
Telerik WinForms MVP
0
Richard Slade
Top achievements
Rank 2
answered on 14 Mar 2011, 12:17 PM
Hi Guys,

Sorry Emanuel, I have to disagree unless there is something obvious I've missed. This is a VS issue with creating the visual designer for complex types. If you add a form to a class library and a grid to the form, and then inherit from the form in the class library, the visual designer remains disabled.

I would suggest using a base RadGridView which you can then easily drop onto any form from the toolbox.
Regards,
Richard

0
Emanuel Varga
Top achievements
Rank 1
answered on 14 Mar 2011, 12:34 PM
@Richard you are right,

Sorry, i don't know why i had the impression that the the problem was that you could not see the control / the control was disabled in the toolbox in a different project.
This is what happens if you create a custom control in a forms application and you try to use that control in a different application.

For this case i would suggest using just custom controls.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Telerik WinForms MVP
Tags
GridView
Asked by
Patrick
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Emanuel Varga
Top achievements
Rank 1
Patrick
Top achievements
Rank 1
Share this question
or