I am trying to use a DataGrid in a Windows Phone 7 App. I haved added the following DLL’s to my project
System.Windows.Controls.Data.dll
System.Windows.Controls.Data.Input.dll
However, I have been told that the DataGrid control is not support on Windows Phone 7 and that the UI Guidelines say that it does not support DataGrid.
My question is:
- Is DataGrid supported in Windows Phone 7?
- Why do the UI Guidelines say that it does not support DataGrid?
Your two questions can be answered together. The answer to question 1 basically follows from questions 2.
The datagrid can be used to easily show collections of data on a regular computer screen. The situation on a small device like a WP7 is totally different. Therefore a control like the datagrid would never be suitable for a decent phone interface. If you check out the screenshots in this blogpost you should notice that it just does not fit in. This is especially true for the WP7 design style.
If you want good advice on how to replace the datagrid with something suitable you can post a questions with the data you want to show and people will be able to give you advice on how you should design your UI.