This project is read-only.

DataGrid and INotifyPropertyChanged

Topics: Bug Report Forum, Developer Forum
May 14, 2009 at 3:14 PM

Hello All,

Currently I have in my project a datagrid bound to an ObservableCollection of a custom object, called PieceUIObject.

I'm using the PieceUIObject properties setters to validate user input data and if necessary throw the exceptions (ArgumentException in this case). I have also added an style to the datagrid to display the exception description on the erroneous cell ToolTip.

Everything was working fine until I had to implement the INotifyPropertyChanged to my PieceUIObject. The reason to do that is to support two-way data binding, so I could change the bound object and the datagrid UI is updated right away.

However, after doing that the exceptions are not been reported correctly anymore on the cell tooltip. Instead of showing the exception text I specified, a generic error message is shown.

What could be cousing this? I can prepare a small test application to send you, but I would like to know if there's something else I could test or correct before.

I would aprecciate any help.

Kindly Regards,