Combo box selected value as object?

1 posts, 0 answers
  1. michelle
    michelle avatar
    14 posts
    Member since:
    Sep 2011

    Posted 20 Sep 2011 Link to this post

    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?

Back to Top