Device Project: Error in creating databound datagrid
July 30, 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:
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.
Entry Filed under: Developer Technologies, Tips & Tricks, Windows Mobile Development. Tags: Windows Mobile, Error, Device project, datagrid, Compact Framework.
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed