My Custom Control and DataGrid Designer error

G

Gabriel

I'm developing a custom webcontrol. In it I override its Render
method. I've developed a class designer for it too. My control works
fine in the VS.NET webform designer but I'm getting a problem when I
want to use my control inside a template column in, for example, a
DataGrid control. The DataGrid designer shows the following message:

"There was an error rendering the control. Check to make sure all
properties are valid"

If a disable my class designer the error occurs too.
I've seem that most of built-in webcontrols in the .net framework
override the AddAttributesToRender method instead of the Render
method.

Any help is appreciated. Thanks in advance.

Gabriel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top