How to programmatically set SELECTEDITEM

3 posts, 0 answers
  1. Eric
    Eric avatar
    6 posts
    Member since:
    Jul 2008

    Posted 16 Nov 2009 Link to this post

    I'm trying to set  the SELECTEDITEM and/or the SELECTED VALUE of combobox in code

    this.cmb.SelectedItem = Customers.Name;

    But it doesn't work  any ideas?  It's always null

    <radcombox  x:name="cmb"  SelectedValuepath="Name"
    SelectedItem = "{Binding Name, Mode=TwoWay}"


  2. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 16 Nov 2009 Link to this post

    Make sure the length of the selected item matches the value in the list.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ravi
    Ravi avatar
    2 posts
    Member since:
    Jul 2010

    Posted 27 Jul 2010 Link to this post


    I have also tried this code but it is not working.
    Please give any suggession ASAP.


Back to Top