none
How to create usercontrol with a look up combo? The microsoft example does not work. RRS feed

  • Question

  • Hi,

    I look at the the example available on msdn walkthrough
    http://msdn2.microsoft.com/en-us/library/ms233787.aspx for my requirement but
    it does not work for me. I am using VS2005 Pro on XP SP2 + SQL 2005 express.

    In my case the combo gets pupulated with data from the look up table but it
    does not change as I scroll through the work table. If I manually set the
    LookupMember property using Advanced data bindings, then it works fine. But
    I want to know why the code as shown on the site does not work?


    But then there is another issue. Even if I put the control on the form, and set all the proprties, the next time i open the form, i get following error:

    Cannot set the SelectedValue in a ListControl with an empty ValueMember.



    Regard
    Vijay G.
    Saturday, July 8, 2006 3:58 AM

All replies