Windows Mobile: how to highlight row in datagrid and compilation delays

杀马特。学长 韩版系。学妹 提交于 2020-01-16 06:09:06

问题


I have two Windows mobile questions:

  1. how to Highlight row in datagrid (after i run any query) ?

  2. why after 20-30 compilation, it takes for 6-7 minutes to compile (the first time takes 1 minute)?

Thanks in advance!


回答1:


For #1, take a look at Ilya Tumanov's example of custom formatting data in the DataGrid. He does custom painting of cells in it. THis is how you'd "highlight" a row.

For #2, there's something wrong with your environment. I've not seen this or heard it reported and I've been using Studio for developing CF apps for a while now, with well over 10-30 compiles in a run. My guess is you have a network drive mapped. Unmap it and see if anything changes (though 6-7 minutes is really heinous). Also, if you're using a solution with a lot of projects, you should have a single output directory for everything instead of each project having their own, and set CopyLocal to false on all the references. This helps keep disk access duriong build to a minimum.




回答2:


For #2: If you're using Visual Studio 2008 it may as well be a matter of PostBuild verification task. The following link pointed me in the right direction when I had the problem:

http://blogs.msdn.com/vsdteam/archive/2006/09/15/756400.aspx



来源:https://stackoverflow.com/questions/839268/windows-mobile-how-to-highlight-row-in-datagrid-and-compilation-delays

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