Update with Entity Framework using User Controls RRS feed

  • Question

  • Hello Everybody!!!

    I have 2 users controls : Categories and Reader.

    A reader belongs to a category.

    I have a combobox categories in the user control Reader.

    The problem is when I insert first the Reader's user control and the Categorie's user control, after inserting a new category in Category's user control I don't have the new category that i've inserted doesn't appear in the combobox.

    Somebody may help please?

    I'm using EF 4.0 thanx

    Thursday, December 13, 2012 8:39 AM


  • Hi DiddyRennes,

    Could you please kindly clarify the issue?

    Can you please share some code with us?

    Is this a bound combobox?

    If so, you need to rebound the combobox.

    First, set datasource to null.

    Second, assign the new data to datasource.

    Best Regards,

    Bob Wu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Bob Wu-MT Wednesday, January 23, 2013 10:24 AM
    Monday, December 17, 2012 8:48 AM