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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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.
Btw, the above applies to the new version that is in CVS.
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....