Comparison: Standard WPF DataGrid and DevExpress WPF GridControl
Comparison: Standard WPF DataGrid and DevExpress WPF GridControl
This article describes the main differences between Standard WPF DataGrid and DevExpress WPF GridControl. Use it to migrate from the Standard WPF DataGrid to the DevExpress WPF GridControl.
Display Data
- Standard WPF DataGrid
- Displays data in tabular format. To configure data presentation, customize the control and column objects.
- DevExpress WPF GridControl
-
Uses three types of views to display data. To configure data presentation, customize the View and column objects:
Bind to Data
Standard WPF DataGrid and DevExpress WPF GridControl use the same property to bind to data - ItemsSource.
#Columns
- Standard WPF DataGrid
- Columns use the Binding or SelectedItemBinding property to bind to data. A DataGridTemplateColumn defines data binding inside a cell template.
- DevExpress WPF GridControl
-
Columns use the FieldName and Binding properties to bind to data.
The Binding property uses the standard binding mechanism. The FieldName uses PropertyDescriptor objects and has better performance than the Binding property. Refer to the following topic for more information on trade-offs between performance and flexibility: Binding Columns to Data Source Fields.
You cannot use the FieldName property to bind a column to a collection property. To display such a property in a GridControl cell, use any of the following techniques:
- Change the field type from a collection to Object in your application’s Model.
- Use the Binding property.
GridControl uses the FieldName property to identify columns. When you use the Binding property, the FieldName property is set automatically. Refer to the following topic for more information: Binding Columns to Data Source Fields - How the GridControl Identifies Columns.
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2018-12-05 C# lock
2017-12-05 System.DirectoryServices Namespace
2017-12-05 用户和用户组,以及文件和文件夹的权限
2017-12-05 win10中让Visual Studio默认使用Administrator权限运行
2017-12-05 Unable to access the IIS metabase
2016-12-05 devenv.exe assert failure
2014-12-05 arp攻击的处理方法