Typed-DataSet in a WebControl Library

  • Thread starter Thread starter Rafael Veronezi
  • Start date Start date
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
 
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
 
Back
Top