General information
Category:
The Mere Mortals .NET Framework
All,
Maybe more information will be helpful. I have created a custom control subclassing mmDropDownList including a mmBusinessObject as a child control. The CreateChildControl method is:
protected override void CreateChildControls()
{
Controls.Clear();
oCounties = new Counties();
this.BindingSource="Counties";
this.BindingSourceDisplayMember = "County";
this.BindingSourceValueMember = "CountyId";
}
When I drop this control on a form, the BindingSource, BindingSourceDisplayMember, and the BindingSourceValueMember are all blank. Do I need to run the this.EnsureControls() method is run before Rendering the control?
TIA
Rex
>>All,
>>
>>I want to create a Web custom composite control for mmDropDownList that automatically loads the DropDownList and has properties to data bind to a business object on the page.
>>
>>How would I go about doing this?
>>
>>TIA
>>
>>Rex
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only