Typed-DataSet in a WebControl Library

R

Rafael Veronezi

Hello guys,
I'm currently developing a Web Custom Control project with VS.Net2003.
It's Ok, I've made my WebControl inherited class. Also I created a
typed-DataSet that's intended to be a property of the control, and I must
expose this public to class... But, when I reference the dll of the control,
the toolbox lists both the controls and the DataSet i've created...
Is there a way to "hide" the DataSet from the toolbox? Maybe some kind of
attribute, dunno...
Thanks,
Rafa
 
N

Nicole Calinoiu

Rafael,

In the class generated for your typed dataset, change the
"[System.ComponentModel.ToolboxItem(true)]" attribute to
"[System.ComponentModel.ToolboxItem(false)]". Unfortunately, you'll need to
do this every time you the class is regenerated. If there's a way to change
the default generation behaviour, I haven't found it.

HTH,
Nicole
 

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

Top