iX Talk
http://beijerinc.com/support/ix/forum/

DataGrid gives ValidatesOnNotifyDataError
http://beijerinc.com/support/ix/forum/viewtopic.php?f=4&t=1925
Page 1 of 1

Author:  andis59 [ Wed Jun 24, 2015 8:03 am ]
Post subject:  DataGrid gives ValidatesOnNotifyDataError

I have an old application that has worked very well, but now all of a sudden I get this error

Quote:
The property 'ValidatesOnNotifyDataError' does not exist in XML namespace 'http//schemas.microsoft.com/winfx/2006/xaml/presentation'

and it points to the Screen1.xaml Line 87 Position 71
On this line and position there is nothing that has any reference to this error.

Strangely if I take the project as is, and rebuild it the it works. But if I make a change to Screen1.Script.cs and then build it I get this error.

I have looked at the two version of the xaml file and there are differences but none that have anything to do with the 'ValidatesOnNotifyDataError' property. This property exists in the original source...

It might have something to do with a DataGrid Control. If I create a new project and only add a DataGrid (System.Windows.Controls PresentationFramework) I get the same error...

Anyone that have a clue what is wrong?

Author:  andis59 [ Thu Jun 25, 2015 6:43 am ]
Post subject:  Re: DataGrid gives ValidatesOnNotifyDataError

I think is has to do with the .NET Framework version!

iX Developer installs v3.5 and v4.0, but Microsoft wants to upgrade 4.0 to a later version. Om my machine "it" had upgraded to v4.5.1

When I reinstalled Windows and only installed iX Developer, thus getting v3.5 and v4.0 then the DataGrid works!

So there is some change in the DataGrid between 4.0 and 4.5.1

So if anyone uses the DataGrid, don't upgrade .NET Framework!

it's probably a bad thing to upgrade as long as iX Developer is not supporting the version!

Author:  andrea [ Fri May 26, 2017 5:40 am ]
Post subject:  Re: DataGrid gives ValidatesOnNotifyDataError

Have you solved that? how?

We have similar problem migrating a project from version 2.1 SP2 to 2.2 SP2 and for the moment we can not go ahead.

Thank you very much

Author:  andis59 [ Fri May 26, 2017 6:06 am ]
Post subject:  Re: DataGrid gives ValidatesOnNotifyDataError

Hello Andrea,

The short answer: No!

Beijer support have reproduced the error, but have not found why. (this was last year in February).

They recommended that I change to the DataGrid in Windows.Forms instead. Which I did (I didn't have that much code that used the DataGrid but it took some time to re-code...)

I haven't follow up to see if they fixed it, but since you are asking it doesn't look that way.

Sorry for the bad news!
Do contact Beijer support and ask...

Author:  andrea [ Wed May 31, 2017 1:26 am ]
Post subject:  Re: DataGrid gives ValidatesOnNotifyDataError

I wrote directly to Beijer support and reply obtained is this

This is known and has been reported to R&D.
Unfortunately, the priority of this case is low and due to this I cannot
say if or when this will be solved.
The problem is related to the System.Windows.Controls.DataGrid and
different versions of .NET and tools/extensions to .NET.
If you have .NET v4.5 or later the "ValidatesOnNotifyDataError" property
will be added to xaml code of the DataGrid and this does not exist in .NET
v4.0 which is used when building and compiling an iX PC application.
This only happens if you import and use this control in a iX PC application
and has a later version of .NET (than v4.5) or some addons/tools for .NET,
due to this the priority is considered low.

The suggested work around is to use the System.Windows.Form.DataGrid.
Another solution could be to remove the "ValidatesOnNotifyDataError"
property manually in the xaml code, but the drawback is that the code will
be regenerated if you make any changes on the screen and the build error
will come back.

Another post on the forum I opened recently on same point is this:

viewtopic.php?f=4&t=2195

I ask if someone has further suggestions about

Thank you

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/