DatagridView (Winforms) behavior when upgrading to 4.0

DatagridView (Winforms) behavior when upgrading to 4.0

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


vschaak posted on Sunday, October 09, 2011

Hi,

I upgrade a .NET 2.0 and CSLA 3.8 Projekt to .NET 4.0 and CSLA 4. I've got a BO with a child-collection bound to a bindingsource. Via a button new elements could be added to the child collection. OK so far and unchanged.

But other than before, the Datagrid which is bound to the child-BS doesn't show the new data, which is definitly added.

Any thoughts on that?

Thx & kind regards

Volker

JonnyBee replied on Sunday, October 09, 2011

Hi,

Did you change your lists to inherit from BusinessBindingList/ReadOnlyBindingList etc.

Default lists in CSLA 4 now inherits from ObservableList that has different events (and does not work as expected with WinForms controls) and the "old" BindingList base classes is renamed.

 

vschaak replied on Monday, October 10, 2011

Hi Jonny,

that exactly was the reason! (and an easy fix Big Smile)

Thanks a lot...

Volker

Copyright (c) Marimer LLC