DataPortal_Update() is not executed when DataGridView is updated

DataPortal_Update() is not executed when DataGridView is updated

Old forum URL: forums.lhotka.net/forums/t/2974.aspx


DocJames posted on Friday, June 01, 2007

Hey,

I have

I have created a data source to Accounts, dragged it to a form as a DataGridView. Everything works fine, I can edit, delete and add new in the DataGridView.

But on updates, DataPortal_Update() on Account is not executed.

I can debug that EndEdit() is called in BusinessBase - and then I'm lost. I can't figure out why DataPortal_Update() is not updated. I don't know where to look ...

Anyone else had the same problem?

Thanks,

Jimmy

Brian Criswell replied on Friday, June 01, 2007

You have to call Save on the list manually.  If you want the items to automatically be saved as soon as you finish editing an item in the grid, you need to use the RootListBase instead of BusinessListBase.

DocJames replied on Friday, June 01, 2007

Good info - thanks!

I have found the description/template in the 2.1 e-book.

Is there any place / site with an overview of the different base classes and their use - besides piecing it together from the book and the 2.1 e-book?

Thanks,
Jmmy

Copyright (c) Marimer LLC