Problem databinding to a grid

Problem databinding to a grid

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


DanEssin posted on Tuesday, August 29, 2006

I've got a business object that contains 2 child lists.
I've got a form that has 3 binding sources, one bound to bo, one to bo.list1 and the other bound to bo.list2.
I've got a grid whose datasource is set bindingSourceList2. I've also got a datanavigator bound to bindingSource.list2

All the data retrieves and displays perfectly from the database. If I click the add button on the nav bar, the grid displays a new row and I can enter data into it. When I click the update on the nav\ bar, no data is sent to the database (IsDirty is false). I also get no saving even if I invoke the bo.Save() although if I don't bo.ApplyEdit() it complains that it can't save because an edit is in progress.

I've tried this with 3 different grids 3 different nav bars and 2 different binding sources but have not found a combination that will actually put data back into the database.

I am almost out of ideas about what to try next. Any help would be appreciated.

Dan

Tim FOrd replied on Wednesday, August 30, 2006

Hi Dan,

I had the same issue, Check that you have overwritten the IsDirty etc function and verify your other business objects that relate. Also verify that MarkOld is being called in your dataportal fetch, this is dependant on your objects though.

Tim.

DanEssin replied on Wednesday, August 30, 2006

I'll check.

Thanks,
Dan

Tim FOrd wrote:

> Hi Dan,
>
> I had the same issue, Check that you have overwritten the IsDirty etc
> function and verify your other business objects that relate. Also
> verify that MarkOld is being called in your dataportal fetch, this is
> dependant on your objects though.
>
> Tim.
>
>
>

Copyright (c) Marimer LLC