ListView and
DataGrid is just one. Editing. You need editing use
DataGrid, otherwise use
ListView. You can edit in
ListView also but it is easier and build in
DataGrid. Otherwise, whatever can be displayed in
DataGrid, can be displayed in
ListView.
One thing which DataGrid supports and ListView doesn't (out of the box) is automatic column generation.
You can read this article on CodeProject for a better understanding of DataGrid and also about the major differences between ListView and DataGrid.
When thinking of ListView think Windows Explorer, the pane where you see all you're files, thats a ListView.
When thinking data base its usually (I said usually) a data grid, mouse over the gridview tag and read the description.
Some very obvious reasons why you would want a gridview is its directly editable. You can have your user enter the questions and the answer in there. Note, since ListViewItem is an Content Control you also could customize it easily like this article does.
Also see if this GridView tutorial helps.
本文探讨了WPF框架下ListView与DataGrid的主要区别。DataGrid支持直接编辑及自动列生成,适用于数据库场景;而ListView则更适用于文件浏览等场景。文章还提供了CodeProject上的一篇关于DataGrid的详细教程。

被折叠的 条评论
为什么被折叠?



