Answered by:
Composite Control with complex properties

Question
-
User-965962254 posted
How do I expose databinding to one of the properties in a complex object? This complex object is in a separate class with a type converter inheriting an expandable object converter.
This is the error I get when drop the composite control inside a formview and declarative bind one of the complex object property.
Error Creating Control
Databinding expressions are only supported on objects that have a DataBinding event. Iml.Web.UI.WebControls.TextBoxSettings does not have a DataBinding event.
Thanks.
Tuesday, November 24, 2009 9:19 AM
Answers
-
User-1635004338 posted
Hi dotnetster,
Here are some good articles about how to create a databinding custom control:
http://aspalliance.com/391_Custom_Data_Binding_for_Server_Controls
http://msdn.microsoft.com/en-us/magazine/cc163505.aspx
Thanks,
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, November 25, 2009 1:53 AM -
User-965962254 posted
Thanks Qin. Nice articles. This article helps as well - http://msdn.microsoft.com/en-us/library/ms178657.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, November 25, 2009 9:05 AM
All replies
-
User-1635004338 posted
Hi dotnetster,
Here are some good articles about how to create a databinding custom control:
http://aspalliance.com/391_Custom_Data_Binding_for_Server_Controls
http://msdn.microsoft.com/en-us/magazine/cc163505.aspx
Thanks,
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, November 25, 2009 1:53 AM -
User-965962254 posted
Thanks Qin. Nice articles. This article helps as well - http://msdn.microsoft.com/en-us/library/ms178657.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, November 25, 2009 9:05 AM -
User-965962254 posted
How do I make the determination if a composite contol is being data bound or is a stand alone control (ie. not inside a databoundcontrol such as a FormView) ?
Wednesday, November 25, 2009 3:03 PM