Difference between List View and DataGrid in WPF
2017-04-13 10:54
483 查看
Well, in WPF the difference between
One thing which
You can read this article on CodeProject for a better understanding of
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.
ListViewand
DataGridis just one. Editing. You need editing use
DataGrid, otherwise use
ListView. You can edit in
ListViewalso but it is easier and build in
DataGrid. Otherwise, whatever can be displayed in
DataGrid, can be displayed in
ListView.
One thing which
DataGridsupports and
ListViewdoesn't (out of the box) is automatic column generation.
You can read this article on CodeProject for a better understanding of
DataGridand also about the major differences between
ListViewand
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.
相关文章推荐
- Difference between List View and DataGrid in WPF
- the differences between DataGrid and DataList in HTML View
- [WPF]The differences between Text Box and Text Block in Blend
- differences between List and Set interface in point format
- Difference between List and Set in Java Collection
- Difference between ArrayList and LinkedList in Java
- Difference between List and Set in Java Collection
- Difference between List and Set in Java Collection
- Difference between Set, List and Map in Java - Interview question
- The difference between EXISTS and IN upon Oracle
- day17 oracle ----查询(select) ---(BETWEEN ... AND... ,IN(list), LIKE , IS NULL , AND ,OR, NOT) ---(字符 , 数字 ,日期, 转换
- What is the Difference Between Type and Class in
- Difference between STA and MTA in thread
- Difference between event.target and event.currentTarget properties in an event object.
- Differences between Name and x:Name in XAML
- What is difference between And and Andalso in VB.net ?
- Difference between ViewData and TempData
- Difference between pointer variable and reference variable in C++
- The difference between iostream and stdio in MPI
- .NET Basics:difference between new and override in inherite