Menu

How to use with IEditableObject

ddpruitt
2005-08-19
2013-03-07
  • ddpruitt

    ddpruitt - 2005-08-19

    I was attempting to use ObjectView and was able to get the databinding to work.

    However I ran into the Listbox - Textbox issue (edit value in Textbox does not update value in Listbox).  I added the IEditableObject interface to my object but that did not seem to help (of course I don't think I implemented it correctly).

    Any suggestions?

     
    • Martijn Boland

      Martijn Boland - 2005-08-19

      You don't have to implement IEditableObject since ObjectViews does that for you (in fact, the ObjectViewRow).
      The problem with a textbox is that the value isn't updated directly in the underlying source. You have to call EndCurrentEdit() of the currencymanager to let that happen.
      Have a look at the example application. There is a ListBox with customers and after changing the CompanyName, EndCurrentEdit() called to update the ListBox.

       
    • Martijn Boland

      Martijn Boland - 2005-08-20

      Btw, the above applies to the new version that is in CVS.

       
    • ddpruitt

      ddpruitt - 2005-08-23

      I down loaded the CVS version and compiled it.  It worked great!

      This is a very impressive project and you should prodcast it more.

      hmmm.... I see a codeproject article in the making....

       

Log in to post a comment.

MongoDB Logo MongoDB