The MindFusion Forums
MindFusion.Reporting >> WPF >> Binding Errors when {Binding XXX} used
https://mindfusion.eu/Forum/YaBB.pl?num=1318587353

Message started by Tim99 on Oct 14th, 2011 at 10:15am

Title: Binding Errors when {Binding XXX} used
Post by Tim99 on Oct 14th, 2011 at 10:15am
When you use a {Binding XXX} to specify a content or as a DataSource a BindingExpression path error is reported in the projects Output window.

This can be avoided by using [FieldName] rather than the {Binding FieldName} but you cannot do this for a DataSource.

When producing loger reports you get multiple binding errors for each row which take a lot of time to produce before the report is visible.

Is there a way of specifying the DataSource without getting these Binding Errors?

Thanks again for your help.

Title: Re: Binding Errors when {Binding XXX} used
Post by Meppy on Oct 17th, 2011 at 2:27pm
The current problem we are facing is that bindings established when the DataContext is still not set do not work later, when the DataContext is set. Assigning a special object as a DataContext seems to resolve this issue, but causes all bindings to give the error in question because they refer to properties which do not exist. A temporary solution for turning these errors off is the following: go to the Options dialog in Visual Studio (Tools -> Options menu). In the dialog select Debugging -> Output Window and set Data Binding to Off.

Regards,
Meppy

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.