Say I have a table name is MyData, the I have a column have the same name MyData. so the table looks like
MyData(ID开发者_开发问答, MyData, Col3, ....)
Using EF and Ria Service to get data from DB and bind data to a datagrid like:
<data:DataGridTextColumn Header="ID" Binding="{Binding ID}" />
<data:DataGridTextColumn Header="MyData" Binding="{Binding MyData}" />
<data:DataGridTextColumn Header="Col3" Binding="{Binding Col3}" />
...
then run it, I can get all data displayed for all other columns except MyData column. Nothing displayed for Mydata.
How to resolve this problem?
It looks like you have an object called MyData and then a property with exactly that name, try change the name of your table and see if it works...
精彩评论