|
-
Dec 9th, 2003, 08:18 AM
#1
Thread Starter
Lively Member
passing own created dropdownlist to existing dropdownlist
Hello,
I've created a class which contains a dropdownlist property.
Right now, I want to pass this dropdownlist to an existing one
VB Code:
in my class:
Public ReadOnly Property HoofdNummer() As DropDownList
Get
FillList
Return _HoofdNummer
End Get
End Property
This is on my page :
Dim oMachine As New Uitrusting
me.ddlExisting= oMachine.HoofdNummer
This seems to work if I look in debug mode, my ddlExisting receives all the values but once it's on the page, I don't see any values in the list.
Has anyone got a clue ?
Thx,
Bjorn
-
Dec 9th, 2003, 10:58 AM
#2
Fanatic Member
I think a better approach is to pass back from your class something that is bindable to the forms listbox, instead of passing the UI control. - This is often bad design and limits your UI.
-
Dec 9th, 2003, 11:54 AM
#3
Thread Starter
Lively Member
Thx for your answer.
I know what you mean but what should I pass back for a combobox ? I don't want to pass back my datatable, cause then I still need to point the valuemember etc.
I just want to databind something which is immediately ready for my combobox.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|