too much bindingSource event

Posts   
 
    
Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 26-Aug-2009 19:21:43   

Hi,

I have latest build of LLBLGen.

I'm using SelfServicing classes with Visual Studio 2005 (framework 2.0). I have a winform project that has: - EntityCollection as datasource - DataGridView - BindingSource that bind the entityCollection to the DataGridView

The event "CurrentChanged" of my bindingSource is called 3 times each time I select a new row in my DataGrid. Detail about "current" entity of events: The first event contain an empty entity and the 2nd and 3th have the same selected entity.

Just to make sure it was not the same behavior with microsoft stuff. I created an empty projet with same configuration but instead of binding my bindingSource to LLBLGenDataSource, I bind to a Dataset. I received only one event each time I select a new row.

Do you have an idea why I receive 3 events instead of one ? Is there any options I should set to have the expected behavior (only one event) ?

Thanks Eric

Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 26-Aug-2009 19:56:53   

Sorry wrong test.

It's seems fine all the time.

In fact I got only one event "current_changed" each time I select a new row in the datagrid.

Also, I always receive 3 events on a collection load in both cases: GetMulti (LLblGen) or fill(microsoft).

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 26-Aug-2009 20:16:34   

I was just going to post the same reply simple_smile I tried to reproduce it, but I always got 1 fire for CurrentChanged or for CurrentItemChanged.

Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 26-Aug-2009 20:20:36   

Thanks for the help !

I still don't understand why I reveive many events on datasource load (getMulti of fill) but I will have to live with it because its the same as the microsoft behavior ...

Thanks Walaa !