Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Self contained mmDropDownList control
Message
From
27/05/2004 09:55:46
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
27/05/2004 09:49:56
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00907668
Message ID:
00907708
Views:
5
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
Map
View

Click here to load this message in the networking platform