Binding to fields containing a period in DataTable in C#/WPF

只谈情不闲聊 提交于 2019-12-02 01:26:40
Nikhil Agrawal

For alternative replace . dot with \u2024

If you put this question to Microsoft people, they will tell you that this (your problem) is because WPF DataGrid supports "sub properties data mapping" when there is a data source. For this reason, . dot tries to resolve to sub object contained in your DataTable.

In the next line they will politely ask you to replace your . dot to _ Underscore in column name.

(http://social.msdn.microsoft.com/Forums/en/wpf/thread/7d84c8f2-2709-4642-a259-739036ffd2a6)

But that's neither a solution nor an alternative.

Solution will only be provided by them by changing their coding.

For alternative replace . with \u2024 This is the unicode character for C/C++/Java

More on this here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!