This is a migrated thread and some comments may be shown as answers.

Combo box selected value as object?

0 Answers 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
michelle
Top achievements
Rank 1
michelle asked on 20 Sep 2011, 04:18 PM
My colleague wrote a demo project that uses the rad combobox in a really nice way whereby each item in the combo box is of type [object] so can be cast to the object desired.. This was in the winforms version..

I am trying to do something similar in asp.net but cannot get it to work.. Can someone confirm this doesnt work in this version?

MassMaintenance.

 

MaintenanceFieldDTO selectedField =

 

comboboxField.SelectedValue

 

as MassMaintenance.MaintenanceFieldDTO;

 


In my code, comboboxField.SelectedValue is a string and I have to locate that string in my list of objects myself - I cant seem to do the above, right?

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
michelle
Top achievements
Rank 1
Share this question
or