Device Project: Error in creating databound datagrid

30 07 2008

When in the device project, it is very simple to create a data-bound datagrid. By just drag and drop the table you want to display in the datagrid from the data source view.

I done that for so many times, however, I was having a problem to do this. When I tried to drag and drop a table onto my device form, this error message thrown to me:

image 
After done some searches on the web, I found out that the reason of getting this error, because of the WCF proxy classes I added to my device project.

By default, the proxy class generated using the NetCfSvcUtil.exe [Comes with Power Toy], doesn’t specify the namespace. Perhaps there is a conflict on the different namespaces.

Therefore, what I do next, is just go to the generated proxy class file, add my project namespace.

Now, I can easily drag-drop the table from my data source explorer, and create a data-bound datagrid.


Actions

Information

Leave a comment