UserControl with BindingSource

  • Thread starter Thread starter bruce_pearson
  • Start date Start date
B

bruce_pearson

I have a UserControl that inherits from BindingSource and another
control that takes a BindingSource as a Property.

When both controls are placed on the form I need the designer to
recognize the control that is inherited from BindingSource as a
suitable target for the BindingSource property on the other control.

Can't find out how this is done. Some help requested.

Thanks,
-Bruce Pearson
 
I have a UserControl that inherits from BindingSource and another
control that takes a BindingSource as a Property.

When both controls are placed on the form I need the designer to
recognize the control that is inherited from BindingSource as a
suitable target for the BindingSource property on the other control.

Can't find out how this is done. Some help requested.

Thanks,
-Bruce Pearson

Not quite accurate...
When both controls are placed on the form I need the designer to
recognize the control that is inherited from BindingSource as a
suitable target for the DataSource (of the BindingSource property) on
the other control.

BP
 
Bruce,

All this things can be done by providing custom designer from your user
control. The designer can filter out all the controls currently on the
design surface and show in the property windows only BindingSource inhertied
controls.

You haven't mentioned whether your control is win or web, so I assume you
are internested in windows forms. There is enough information on the net
regarding how to write desighers. You can start from here

http://windowsforms.net/Articles/default.aspx?PageID=1&Cat=Designer&ModuleFilter=131&tabindex=2
 
Back
Top