DataGrid在WPF中是必需的吗? [英] Is DataGrid a necessity in WPF?
问题描述
那么你对需要在WPF中的DataGrid作为框架组件?如果你觉得这是必要的,那就是因为世界如此习惯了DatGrid数据显示方式多年?
链接到 WPF工具包 - 最新的WPF DatGrid
DataGrids非常适合显示绑定到后备存储的大量表格数据。
但是,WinForms世界发生了什么,人们经常将它们用于需要多元素滚动列表的所有内容。即将推出的第三方DataGrids可用,允许列和字段包含按钮和组合框和图标等。
DataGrid成为一个主力,因为有需要对于某些东西,它可以被哄骗成行为。类似的情况就是DataTables之前的通用集合来了 - 当你使用大量的DataTables,在UI中呈现DataGrid是最小阻力的路径。
我认为当WPF出来时,像我这样的很多程序员仍然以这种方式思考,并且寻找了DataGrid概念的WPF端口。
I have seen a lot of discussions going on and people asking about DataGrid for WPF and complaining about Microsoft for not having one with their WPF framework till date. We know that WPF is a great UI technology and have the Concept of ItemsControl,DataTemplate, etc,etc to make great UX. Even WPF has got a more closely matching control- ListView, which can be easily templated to give better UX than a traditional Datagrid like display. And I would say a readymade DataGrid control will kill or hide a lot of creativity and it surely will decrease the innovations in User Experience field.
So what is your opinion about the need of DataGrid in WPF as a Framework component? If you feel it is necessary then is it just because the world is so used to the DatGrid way of data display for many years?
Some other threads having the discussion about DatGrid are here and here
Link to WPF ToolKit - Latest WPF DatGrid
DataGrids are excellent for displaying large amounts of tabular data bound to a backing store.
But what happened in the WinForms world was that people often used them for everything that required a multi-element scrolling list. Souped-up third-party DataGrids soon became available that allowed columns and fields to contain buttons and ComboBoxes and icons, etc.
The DataGrid became a workhorse because there was a need for something it could be coaxed into behaving like. Similar happened to DataTables before generic collections came along--and when you're using lots of DataTables, presenting it in the UI with a DataGrid is the path of least resistance.
I think that when WPF came out, a lot of programmers like me were still thinking in this fashion, and sought out WPF ports of the DataGrid concept.
这篇关于DataGrid在WPF中是必需的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!