Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2549
DisplayLayout LoadFromXml() fails with "invalid character"
posted

Hi all,
I have written an application that makes use of the DisplayLayouts' SaveAsXml() and LoadFromXml() functions.
Everything works fine until I bind a DataTable (manually constructed) that has column names containing special characters like äöü etc.
The LoadFromXml() call fails giving a System.Xml.XmlException: "Invalid character in the given encoding. Line xyz, position xyz." 

Is there a way to deal with such column names or anything I can do to make the function work with such DisplayLayouts?
Renaming the columns unfortunately isn't an option.

thanks in advance and have a great day
Andy 

Parents Reply Children
No Data