tags:

views:

97

answers:

1

Im getting this exception in the

protected virtual void SendPropertyChanged(String propertyName)
    {
        if ((this.PropertyChanged != null))
        {
            this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); <---- HERE !!!
        }
    }

of one recently table association i created, there lots of same associations around the database, and this happened in the 4 specific tables i added. Its 1...* relationship and association is Primary Table -> Id (identity auto generated) Foreign PId column int not null.

I just dont get it....Im using SqlMetal for generation, i regenerated the schema, rebuild, same. This is causing while inserting row in DevExpress XtraGrid, but i dont think this should be issue, same control with same functionality but for different tables works ok.

I use grid's event for append value in a property when the entity creating. I disabled this but same again.

Recreated the association. No change, exception occurs.

Any ideas?

+1  A: 

Turn off "Just My Code" in Visual Studio's debugging options then you should see that there's more to the stack trace where the exception occurs. The line you referenced is raising an event which is being handled (probably by XtraGrid) for the purpose of updating the UI in response to changes in the bound objects. The line itself isn't throwing the exception.

You will probably find a stack trace deep into the third party control. Hopefully DevExpress can help you resolve it. They're pretty good with support.

Josh Einstein
I guess this will be done, since the problem disappears soon as i remove the BindingSource ListChanged event where i use for some actions
It was Grid's issue when things get complicated and calling the RefreshDatasource